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” :
<?php
if( function_exists('acf_add_options_page') ) {
acf_add_options_page(array(
'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 !