Support » Fixing WordPress » Display posts that are only in certain categories

  • 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 ?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • 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.

    Or you could try one of these codes:

    http://codex.wordpress.org/The_Loop

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Display posts that are only in certain categories’ is closed to new replies.