Tag Archives: search_posts

Ultimate Tag Warror META Keywords

It’s amazing what happens when you email the developer of a WordPress plugin – they respond. At least, most of ’em do (I’m still waiting to hear back from a couple of ’em right now, including Red Alt on being able to search posts from his admin search plugin). After blasting a note to Chris Davis about his community-based tagger, I sent a note off to Christine Davis (no relation) about some shortcomings in the current Ultimate Tag Warrior. I wanted UTW to copy tags into the META keywords tag. She responded with code which needed to be tweaked a bit by Shayne:

[php]< ?php if (is_tag()) { ?>
< meta name="keywords" content="‘%tagdisplay%’, ‘default’=> ‘, %tagdisplay%’)); ?>” />
< ?php } else if (is_single()) { ?>
< meta name="keywords" content="‘%tagdisplay%’, ‘default’=> ‘, %tagdisplay%’)); ?>” />
< ?php } ?>[/php]That’s for all you SEO types out there who are also using the wildly-popular Ultimate Tag Warrior plugin (and I’m not just saying that because it supports Gada.be). This is fun!