Display posts that are only in certain categories (3 posts)

  1. rokshe
    Posted 5 years ago #

    Hey guys, i really need your help.

    I need to create loop that displays posts that are in both categories, for example:

    I'am running a webpage about restaurants, and when i click on categorie "Pizzerias" it displays all posts in that categories, then i choose a city like New York, and it should display all Pizzerias in New York.

    What is the best way to achieve this ?


  2. Walton
    Posted 5 years ago #

    It seems like taxonomies might work better for this. If you had taxonomies for each city, and then values for each type of restaurant, that should work for you. You can even make them hierarchical, so you could have Taxonomy name: Location, under that value, New York, under that value Pizzerias.

  3. hello
    Posted 5 years ago #

    Or you could try one of these codes:


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.