Support

Account

Home Forums General Issues Dynamic values for select Taxonomies base on selected Post type

Unread

Dynamic values for select Taxonomies base on selected Post type

  • Hello
    I am creating an acf for selecting posts base on post_type and it’s categories
    I have a field named post_type and have a field categories
    categories‘s field type isTaxonomy
    How Can i use post_type selected value for display taxonomies of the selected post_type ?
    For example : my post types is : Recipe , vitamin and …
    my recipe taxonomy name is recipe_category
    and my vitamin taxonomy name is vitamin_category

    But when i am creating an acf field group i have to select on of them (vitamin_category or recipe_category) but i want this field be dynamic based of post_type field

    I Read about load_field but i can not use my selected post_type value in this
    Thanks for help

Viewing 1 post (of 1 total)

The topic ‘Dynamic values for select Taxonomies base on selected Post type’ is closed to new replies.