Home Forums Add-ons Options Page Updating post from OptionsPage


Updating post from OptionsPage

  • Hi there, please a little help for a beginner !

    I just buy an ACF license to get the OptionPage add-on…

    I’m trying to update some taxonomy of post, via an OptionsPage, but  I get nothing. 

    The idea is to have an OptionsPage, where editors can easy select a post to add, or remove, 
    some existing tags, an also, add other info to the selected post…

    That look easy, but I can’t make it work ;(

    I activate the OptionPage with this code, on “functions.php” :  

    if( function_exists('acf_add_options_page') ) {
    		'page_title' 	=> 'Taxo Post Manager',
    		‘menu_title’	=> ‘Taxo Post Manager',
    		‘menu_slug’ 	=> ‘taxo-post-manager’,
    		'capability'	=> 'edit_posts',
    		'redirect'      => false
    add_action('acf/save_post', ‘my_post_object_field_name’, 10);

    So, I create a repeater field, with a “post object field” dropdown selector, and a “taxonomie checkboxes”. And assign them to the OptionPage…
    But when I select the post and check the taxonomie I want to add, the post is not updated with the checked taxonomie… ;(

    The question : Is possible to update the selected post from the OptionPage ? 

    If yes, what I’m doing wrong ? How can’t I do this ? 

    Hope you can help me with this, thanks a lot !

  • Hi @mr-barrow

    Thanks for the post.

    Yes it is possible to save and update post terms but only a single term can be saved in a Repeater field. You will however need to ensure that the options to save and load terms to post is checked for the Taxonomy field.

    I hope this helps.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.