• Resolved gk100

    (@gk100)


    Let say I have two pods with fields:

    country (co_title)
    city (ci_title, country)

    where country field is related to country pod.

    Is it possible to get a list of cities of current country (at country pod page)?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Jory Hogeveen

    (@keraweb)

    Hi @gk100

    There are many different ways to do this, depending on your configuration.
    In this case you can fetch the related cities via a where query:

    [pods name="city" where="country.meta_value = COUNTRY_ID"]

    Cheers, Jory

    Thread Starter gk100

    (@gk100)

    I used like this [pods ... where="country.ID = {@ID}"] and it works. Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘List and related pods’ is closed to new replies.