WordPress.org

Ready to get started?Download WordPress

Forums

Query posts with tags of current page title (1 post)

  1. coyacreative
    Member
    Posted 1 year ago #

    Okay, so I have Item A, Item B, Item C (as posts) ... and then there are Accessory posts. I am looking to tag the accessories with 'Item A' or 'Item B' - but I can't figure out how to query the posts within my Item Post Template... here is hat I have so far;

    <?php $p = query_posts(array('category_name' => 'accessories','posts_per_page' => 6,'tag' => '?CURRENT POST PAGE TITLE?')); ?>

Topic Closed

This topic has been closed to new replies.

About this Topic