WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. rokshe
    Member
    Posted 3 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 ?

    Thanks.

  2. Walton
    Member
    Posted 3 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
    Member
    Posted 3 years ago #

    Or you could try one of these codes:

    http://codex.wordpress.org/The_Loop

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.