WordPress.org

Ready to get started?Download WordPress

Forums

<?php the_tags(); ?> doesn't produce anything (5 posts)

  1. ccarmical
    Member
    Posted 6 years 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?

  2. MichaelH
    Member
    Posted 6 years ago #

    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.

  3. ccarmical
    Member
    Posted 6 years ago #

    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?

  4. CaptainBlue
    Member
    Posted 6 years ago #

    I am wondering this too. the-category works fine there but not the_tags

  5. CaptainBlue,

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic