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?
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.