0

I'm making a website that lists hotels by region and sub-regions.

I made a custom post type called Hotels and a custom Taxonomy called Regions. I've inserted countries as parent regions and states as child regions.

I tought it would be simple to make this query but i'm hitting the wall. In technical language that's what i'm trying to do:

Get an archive of custom type posts separated by taxonomies and subtaxonomies.

post query

Thanks in advance

  • Hi Artur, are you trying to list hotels on country & state archive pages? So for example http://example.com/mexico would list 20 hotels in Mexico and http://example.com/mexico/durango would list 5 hotels which are there in Durango ? Please correct if I am wrong. – Prasad Nevase Sep 1 '15 at 5:03
  • Hi there. example.com/hotels/mexico would list 20 hotels separated by states. So it would show durango hotels and 15 more. And examples.com/hotels would list all hotels separated by country and by states. – Artur Haddad Sep 1 '15 at 15:15

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.