Support » Themes and Templates » <?php the_tags(); ?> doesn’t produce anything
9 years, 2 months ago
I’m trying to put tags into the meta keywords, but the <?php the_tags(); ?> code doesn’t produce anything. I am checking it with posts that actually do have tags. Is there a chance one of the files in the download was not updated with this variable?
Works fine for me when used in The Loop. The WordPress 1.6 Default Theme has that tag so see what happens if you change your theme to that.
Thanks. Yes, it does work in the loop. How can I get it to work in the meta tags? Or is this functionality not available? In that case, can I make a feature request?
9 years ago
I am wondering this too. the-category works fine there but not the_tags
Brute Squad and Volunteer Moderator
Does your theme use start_wp()? If it does then tags won’t work.
See http://wordpress.org/support/topic/137047?replies=10 for how it can be resolved.