Forums

Placing tag search result data on a page (other than search result page) (2 posts)

  1. davidthulin
    Member
    Posted 1 year ago #

    Hi!

    One of the tags used in our installation is special enough to warrant its own "page" in the menu. On that page, we will be adding images, video etc. specific to that subject matter.

    Now I want to include in that page the result data from a tag search, to ensure that all blog posts related to the subject matter are visible there in addition to all the other stuff.

    I have tried to look in both widgets.php and archive.php to try to figure out how tag search result pages are generated with success approaching zero.

    Ideas?

    Thanks!
    David

  2. davidthulin
    Member
    Posted 1 year ago #

    I found a solution to this challenge.

    Firstly I created a new page template (copied the old one) and then I included the following:

    <?php query_posts("tag=news"); if (have_posts()) : while (have_posts()) : the_post(); ?>

    Works like a charm. (Oh, and change the phrase "news" above to the tag you want to list.

    David

Topic Closed

This topic has been closed to new replies.

About this Topic