could not find it on the codex. can i get the_tag code to generate raw text seperated by commas? like
wordpress, bbpress, akismet
no html, just plain text.
could not find it on the codex. can i get the_tag code to generate raw text seperated by commas? like
wordpress, bbpress, akismet
no html, just plain text.
There is no such code presently. Tags are linked to something. That's part of what makes them Tags. If they're not links, then they're not recognized as tags anymore by automated parsers.
But, this will do it in the Loop:
<?php echo strip_tags(get_the_tags('',', ','')); ?>
thanks. i needed the tags to be put in meta tags so did not need the links in them :)
update: umm any ways to get them outside the loop?
update: umm any ways to get them outside the loop?
No. Create an extra Loop for getting them instead. Like in your header.php:
<?php if (is_single()) { the_post(); rewind_posts(); ?>
<meta whatever="<?php echo strip_tags(get_the_tags('',', ','')); ?>" />
<?php } // end extra Loop ?>cool thanks!
This topic has been closed to new replies.