WordPress.org

Support

Support » How-To and Troubleshooting » How to use “tags” in the loop?

How to use “tags” in the loop?

  • Hi
    I’ve been searching the Codex, the forms, everywhere on to to accomplish this:

    How do I call all the posts that have been tagged with “HamSandwich” in a loop? ( the tags that are added to a post via the { Write->Post-> } tag field under the “Post” content field.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • This code is from the codex:
    query_posts('tag=cooking');

    Should work.

    wow – that works great! really really simple and powerful

    Makes doing corp sites much easier than the old way (via cats)

    ‘wonder why I couldn’t find it on the codex?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to use “tags” in the loop?’ is closed to new replies.