Saving Form Fields for Taxonomies (2 posts)

  1. Brandon Wamboldt
    Posted 6 years ago #

    I am using

    add_action( 'ytgallery_edit_form_fields' , 'ibew_edit_taxonomy_fields' );

    which uses the ${taxonomy}_edit_form_fields hook to add a new meta box for my custom post type taxonomy (Called Video Gallery). I want to save this data, how abouts do I do this? I know the hook is edit_${taxonomy} but I don't see a way to save this data.

    Any ideas?

  2. joehuffman2
    Posted 6 years ago #

    I don't know what form you are using exactly but I made a form before that updated taxonomies using set post terms:

    `wp_set_post_terms( $postid, $taxonomy, 'taxonomy');'

    And from there would take the variable (or array) from the form input for $taxonomy. Don't know if those term function could help.

Topic Closed

This topic has been closed to new replies.

About this Topic