Hi,
I tried both solutions, Rob’s one works, but John’s one doesn’t.
I thought it was a problem in rendering/loading the google_map field/value,
so I’ve tried update_value
on a basic ACF text field, passing its $value to another ACF field, but nothing happens.
I’ve tried overriding the returned $value as in docs usage example and it fires only when I save the post (publish or update – so I don’t get the difference with save_post
action).
As far as it regards:
do something else to the $post object via the $post_id
neither ACF update_field
nor WP update_post_meta
seems to work.
So, hooking WP save_post
does the job, but I wonder if there’s a way to dynamically update ACF fields while updating other ACF field value.
Cheers
Hi John and Darrin,
any news about adding a hook in ACF Options page?
I’d like to use ACF Options Page to manage all the settings, instead of adding other admin / options pages (e.g. to add a button to trigger a PHP function and do something with a file uploaded with ACF file field).
I’ve opened a new ticket, as suggested by John, and I’ll update the thread as soon as I get an answer 😉
Cheers,
Davide
Hi,
it may be late but check John’s answer:
https://support.advancedcustomfields.com/forums/topic/post-object-vs-relationship-which-should-i-use/
+1, very useful.
It would be great also for Table field add-on, since replicating similar complex tables several times could be pesky.
@indrek_k I’ve tried your solution.
I already have option page full of fields of different kind (repeater, flexible content, galleries, …).
After adding your code I lost every values already entered and I had to fill in again each field. Maybe since I already filled in before making this option page “global”?
What about have_rows and other ACF functions for flexible contents and repeaters?
Eventually I restored the backup and removed WPML. I own the DEV license but it’s increasingly complex to have a perfect multilingual website with WPML and ACF.
I often used options pages to store numerical data, which don’t need any translation.
I switched to Polylang but I’m having some issues with Gallery fields. I open a new ticket about this.
Davide
Hi,
I have the same problem with ACF 5.1.5 and WPML 3.1.8.4.
As pointed out by brian1037, I’d rather avoid to translate in more than 5 languages prices, dates and other numerical data or tables.
I used Option fields just to fill in these fields only once for the whole website.
But now I have all these fields empty in languages different from default.
Hope it could be fixed soon,
thanks
Davide
I’m having the same issue with ACF Pro 5.0.8.
It would be great to keep using image field with Network Shared Media on Multisite.
Thanks
Hi,
thanks for your solution.
After searching how to sort taxonomy terms in WordPress I haven’t found any solution except to use a plugin, so I opted for this plugin: http://wordpress.org/plugins/custom-taxonomy-order-ne/
and after changing the order I can have the taxonomy terms in the Taxonomy field sorted as I want.
Regards
oops, found the solution here:
http://www.advancedcustomfields.com/resources/tutorials/querying-relationship-fields/
sorry 😉
Wow,
thanks for the solution: it’s simply perfect!
You’re great!
Hi Elliot,
thanks for your answer.
I’m not an expert with jQuery, so by now I found this solution:
In relationship.php I duplicated the featured_image code in the loop and added:
if( in_array('code', $field['result_elements']) )
{
$code = get_field( 'code' );
$title .= '<span class="code">' . $code . '</span> ';
}
and then in right list:
if( in_array('code', $field['result_elements']) )
{
$code = get_field( 'codice', $p->ID );
$title .= '<span class="code">' . $code . '</span> ';
}
and in the choices array I added:
'code' => __("Code",'acf'),
In this way it works perfectly (as shown in the screenshot).
Is it possible to do the same with a hook or filter in functions.php, so I leave your file unchanged and update friendly?
Regards,
Davide
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.