WordPress.org

Ready to get started?Download WordPress

Forums

Multiple Categories in URL (3 posts)

  1. reeksy
    Member
    Posted 5 years ago #

    Hi.

    I want to be able to filter by multiple categories on the frontend.

    For example, this will return all posts within the 'football' category:

    http://www.mysite.com/cat/football/

    But i also want to be able to return all posts within the 'football' AND 'wigan' category. How can i achieve this?

    I thought it might be possible to do the following, but it doesn't work - it returns a 404:

    http://www.mysite.com/cat/football/wigan/

    My permalinks are set up like this (which is a custom structure):

    /%category%/%postname%/

    Thanks for the help!

  2. Konstantin Kovshenin
    Member
    Posted 5 years ago #

    Create a page template with a custom wp query (query_posts("category_name=football,wigan...) then create a page and pick the template.

  3. reeksy
    Member
    Posted 5 years ago #

    Great, thanks for the help.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.