WordPress.org

Ready to get started?Download WordPress

Forums

Archive page view - filtered by Category and Tag (3 posts)

  1. juxprose2
    Member
    Posted 4 years ago #

    Hello

    Is it possible to create a link to an archive page that will function like this:

    http://www.mysite.com/category/news&tag=uk

    So i will be linking to an archive page that lists all posts in "news" category that also have a tag of "uk"

    Any thoughts much appreciated.

    Thanks

  2. esmi
    Forum Moderator
    Posted 4 years ago #

  3. juxprose2
    Member
    Posted 4 years ago #

    Thanks. I can use that to modify the loop on my archive page by specifying the Category and the Tag via query_posts, yep.

    but, I should explain a bit more about what I am trying to do:

    On a page with a custom loop I am listing the latest 3 posts from the "News" category that have been tagged as "Blog". Also on that page I have a list of all the "News" posts that have been tagged as "Photo". So two lists, spitting out recent "News" items, and splitting them between "Blog" and "Photo".

    On that page I would like a link that will take the user to a page that displays ALL "News" posts that have a tag of "Blog". not just the top 3.

    So I think I need to do the filtering in the URL, rather than by using query_posts on the actual page itself, is this the best way to do it?

    Thanks a lot

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags