Support

Account

Home Forums Backend Issues (wp-admin) Adding Taxonomies Dynamically and Removing Unwanted Ones Reply To: Adding Taxonomies Dynamically and Removing Unwanted Ones

  • Hey John, I am trying to test out your code above, however I am running into a couple roadblocks (which I am not smart enough to figure out 🙂 )

    First, I changed acf/update_value/name=filters, which is my repeater field name.

    Then I added my sub field key, which if I am right is the data-key=”field_5702af55a084f” that is on each td that contains an input/entry on the options page.

    If I run the code now I get the following errors when I click the “Save Options” button…

    
    Warning: Missing argument 2 for my_remove_terms() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 403
    
    Warning: Missing argument 3 for my_remove_terms() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 403
    
    Fatal error: Call to undefined function get_options() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 408
    

    Due to the Fatal Error I tried changing get_options to get_option but then I get…

    
    
    Warning: Missing argument 2 for my_remove_terms() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 403
    
    Warning: Missing argument 3 for my_remove_terms() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 403
    
    Warning: Invalid argument supplied for foreach() in /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php on line 418
    
    Warning: Cannot modify header information - headers already sent by (output started at /home/evolve/public_html/neilLesson/wp-content/themes/neillesson.com/functions.php:403) in /home/evolve/public_html/neilLesson/wp-includes/pluggable.php on line 1228
    

    I will keep looking into it but any help would be awesome!