Category question with custom post types (1 post)

  1. airbag41
    Posted 3 years ago #


    I am looking to create a directory with post types. My current structure is:
    - listings (post type)

    - categories (category)

    - locations (category type)

    My question is I want a to be able to show a landing page for a combination of category and location with a nice slug. I could do this by creating the same sub categories in the locations as my main categories but that seems to be a lot of work. Is there a way to show all posts belonging to both a category and location?

    Example would be:
    Main Category: Flowers /flowers
    Location: New York /locations/new-york
    What I'm trying to do: /location/new-york/flowers

    So any listing that is art of new york location and flowers would show up in the archive page for: /location/new-york/flowers


Topic Closed

This topic has been closed to new replies.

About this Topic