Support » Themes and Templates » Query posts with tags of current page title

  • 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?')); ?>

  • The topic ‘Query posts with tags of current page title’ is closed to new replies.