WordPress.org

Ready to get started?Download WordPress

Forums

How to use "tags" in the loop? (3 posts)

  1. noise
    Member
    Posted 5 years ago #

    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.)

  2. Evita
    Member
    Posted 5 years ago #

    This code is from the codex:
    query_posts('tag=cooking');

    Should work.

  3. noise
    Member
    Posted 5 years ago #

    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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags