Hi,
in fact , the problem was the $oeuvre variable, for it is an array
i had to write :
$term_taxonomy_ids = wp_set_object_terms( $oeuvre->ID, $term_id, ‘statut_oeuvre’);
in steadof
$term_taxonomy_ids = wp_set_object_terms( $oeuvre, $term_id, ‘statut_oeuvre’);
Thanks for help
Fred
Hi,
here is a zip
Thanks
Fred
Hi,
I tried several ways but none worked. With the slug, the id, … yet updat_field lines work
here is my code, see // WP SET TERM OBJECT DOESNT WORK (line 57)
Thanks
Fred
Hi,
thanks
i use wp_set_object_terms for it s a custom posttype and custom tax, but it doesnt work. May be i cant call this function in the acf/save_post action ?
update_field( ‘field_56618811a093f’, 18, $postID ); = OK
$term_taxonomy_ids = wp_set_object_terms( $postID, 18, ‘my_taxonomy’); = doesnt work
Hi,
I ve updated, but issue still occurs.
In fact issue occurs when the image filename is the same as post title.
In my case , i ve generated the post from an external database and the the post title is the same as the image filename.
Of course I can change that, but that means there is small a bug in your plugin.
tell me if you plan to fix this problem, otherwise I should rename all my images and associate them with my posts.
Thanks
Fred
Hi,
thank you for the answer,
I disabled all plugins and changed my theme (2015) but the problem still occurs. You can see it: http://www.esat.calypseo.fr/v1/wp-admin , see Expositions or Prêts (the relationship is Oeuvres)
you can login with : acf / AcfTeam**2016** , and do what you want , for it is a test version
it looks like a program bug, it generates the <b> </ b> for characters that match the search term. If there is no picture it really generates the <b> on the title, otherwise it generates the <b> on the name of the image file.
When the post is archived, the issue doesnt occur (archive), that s strange (it s a status i ve added in my fonction.php and unknown in the 2015 them). other post are publish.
My version is 5.3.5 (update = Bad Request ???) , wordpress 4.6.1 (i had the same issue with 4.4 version)
Fred
Oups , have to expand by clicking very small arrow (at the right) to see the sub field values
Sorry
idem , can’t add value for repeater field
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.