How filter post WP Blog By TAG

Discussion in 'WordPress' started by acepsdr, Nov 24, 2008.

  1. #1
    In the wordpress blog we can show only some posted by category with "query_posts('cat=3')" code in the loop. For my case, I want filter to show posted like that, but not by category. I want filter by TAGs, How do that?
     
    acepsdr, Nov 24, 2008 IP
  2. sadcox

    sadcox Peon

    Messages:
    162
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sadcox, Nov 25, 2008 IP
  3. ThePhoenixBird

    ThePhoenixBird Well-Known Member

    Messages:
    255
    Likes Received:
    14
    Best Answers:
    0
    Trophy Points:
    130
    #3
    Its quite easy if you know how to modify your theme:

    [I]query_posts[/I]('[I]tag[/I]=cooking');
    Code (markup):
    Or if you want to just grab posts that have 2 or more tags on them

    [I]query_posts[/I]('[I]tag[/I]=cooking+pie+soup');
    Code (markup):
    Good Luck
     
    ThePhoenixBird, Nov 26, 2008 IP
  4. acepsdr

    acepsdr Peon

    Messages:
    37
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks ThePhoenixBird, I need like that.

    Thank You,
     
    acepsdr, Nov 26, 2008 IP