Support

Account

Home Forums Backend Issues (wp-admin) How to load Post Type fields with data from a remote API Reply To: How to load Post Type fields with data from a remote API

  • I’m having trouble getting the [json url] object to include as options in the post type.

    Another idea would be to create with Post Types and Taxonomy, but it would need to make the relation of the CPT to allow the selection of the First Level – Parent (Unit) and after Loading the Unit in the Select Field, it loads a second Select with the Second Level Options – Child (Sector) allowing the selection of only the Sector of the Parent Unit.

    Do you have any examples of how to implement this?

    1 – I need to create two CTPs [Unit] and [Sector];
    2 – The CTP [Unit] will have a Child CPT [Sector] (How to set this Hierarchy, to allow the selection of the child?)
    3 – I have a Taxonomy [Counties] (Similar to Cities), which makes it possible to separate the [units] by [Counties]

    Did you understand my problem?