Ok i find solution i must append this popup before my offcanvas. So with this code $(‘#acf-popup’).prependTo(‘.offcanvas’) solve my problem in class-acf-field-taxonomy.php
Ok, thanks for this info, can you reply on this topics when will be ready this patch.
I solve this. Except one problem. Now i’m using next code for form
<?php acf_form(array(
'post_id' => 'nova_narocilnica',
'field_groups' => array(
'group_5f475552ca375'
),
'post_title' => true,
and working well and then with pre_save filter i add manualy this acf filed to database (i cerate new term to custom taxonomy). But problem is when i refresh this page where i have this form included i get in inputs the latest saved values. But i save this values for custom taxonomy not to this page, so why then i get latest saved input values.
When i go researching i find that if i change 'post_id' => 'nova_narocilnica',
change to something else the input are blank but still when i submit form it also save to this page. why?
Hi,
yes this work but now i have next problem.
My structure is like next example:
Custom Post Type: Pregledi
– Custom taxnomy: Lokacija
– Custom taxnomy: Naročilnice
Now on acf form naročilnice i also have Taxonomy field coneected to “Lokacija”. So if i explain i assing custom taxonomy Lokacija to taxonomy Naročilnice. And when i do this over backend it work if i asign from frontend i cant that it works.
@John Huebner thanks for answer. But i dont understand exacly what i must do. Do you have some example code for this. Then i can do if i saw some exmpale code. For now i have on custom template this:
acf_form(array(
'id' => 'acf-form',
'post_id' => 'new_post',
'post_title' => true,
'new_post' => array(
'post_title' => 'new_narocilnice',
),
and also i have already filter function my_pre_save_post( $post_id ) { ....
but i dont know what i must check in filter and how then save all custom field.
This is solve my problem. Thanks
Yes, so i guess that is problem in my custom made theme. But i cant find what.
Now it is 2 years over. Maybe now exist this option? Now i realy need this functions. Can you help me with this?
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.