Viewing 4 replies - 1 through 4 (of 4 total)
  • Anonymous User 14808221

    (@anonymized-14808221)

    You could create a Taxonomy for each element (City, State and Region) and attach that taxonomy to a Post Type.
    Or you can use Custom Select Fields as well.

    Of course you could also create 3 CPT’s, each one for city, state and region, and then connect them with a Many to Many Relationship.

    Maybe this can help you:
    https://wp-types.com/forums/topic/best-way-of-creating-a-country-state-city-relationship-and-a-parametric-search/

    Also we have some free reference Sites you can look at:
    https://multilingual-real-estate.discover-wp.com/

    Thread Starter souravkr

    (@souravkr)

    Hey Beda,

    i have created taxonomy for city, state and region. but i am not understanding that how to connect it with one to another. i am trying and watching your video tutorials so, i hope this will help me better. otherwise i’ll have to use core php with ajax and mysql.

    Thanks for reply.

    Anonymous User 14808221

    (@anonymized-14808221)

    Taxonomies cannot be connected, but there is no need to.

    You simply add those to the Custom Post Type, and when creating a “Location” post, you choose which city, state and Region the Location belongs to.

    Does that help?

    Thread Starter souravkr

    (@souravkr)

    Hey Beda,

    I have created Custom Post Type for that.

    Thank you so much for reply & help.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Type for Location’ is closed to new replies.