Home Forums Add-ons Options Page register a taxonomy from an option page Reply To: register a taxonomy from an option page

  • Hi @l.pirondini

    The register_taxonomy function should be placed inside your functions.php file and should run on every page load.

    I can understand what you have coded, but it won’t work with ACF.
    You will need to remove the acf/load_field filter, and the acf/save_post action code and change your logic to do this.

    1. Create a repeater field on the options pages with a text field for the taxonomy name
    2. Enter some data into this field on the options page
    3. Hook into the init action in your functions.php file and load the options page repeater field values.
    4. Loop through these values and run the register_taxonomy on each one