• Hello, I need your help.
    Currently I have two custom post types: Countries and Regions

    I will wish that when we add a Custom Post it automatically adds in a select. In fact I wish a region linked to a country

    For example: When I add a post (France) in my custom Country. I can choose the country in the ACF Regions.

    I want to do this to make a custom relationships to each other in order to avoid having too much class Thanks

    https://www.ads-software.com/plugins/advanced-custom-fields/

Viewing 1 replies (of 1 total)
  • Hey wladimir.delcros

    You can do this by using the “Relationship” field which is designed to build relationships between posts of different post types.

    For your stated example, you would create a new field group that will display only on the Regions Custom Post Type. Within this group, you can add a “Relationship” field that populates with just posts from Region custom post type.

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamically Select field of Custom Post Type’ is closed to new replies.