Support » Fixing WordPress » Multiple Categories in URL

  • reeksy

    (@reeksy)


    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!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Moderator Konstantin Kovshenin

    (@kovshenin)

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

    reeksy

    (@reeksy)

    Great, thanks for the help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Multiple Categories in URL’ is closed to new replies.