I have a cpt: offer wich has description field and belong to taxonomy:destination and another cpt:quotation wich have description field
When i try to create a quotation, i select the destination via a relationship field and want quotation description to be copied automatically from offer description.
How to do it please ?
I have an example here that dynamically loads fields based on the selection made in a relationship field https://github.com/Hube2/acf-dynamic-ajax-select-example/tree/master/dynamic-fields-on-relationship
Thank you for your reply, as i understand : this method works well when copying : title, image, excerpt ( standard wordpress fields) form Post A to ACF based Post B
In my case, i have also the Post A based on ACF Pro
Can you give ma an example: how can i copy a metafield based on ACP to Post B ?
Thank you in advance
I have also to use the code in the php file
Where i have to add this code ? in the functions.php file ?
The examples I’ve posted are just so that you can have an idea of what’s involved. For other custom fields you would get them the same way you’d normally get fields from ACF
$value = get_field('my_field', $post_id);
You must be logged in to reply to this topic.
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!
📣 “ACF Chat Fridays”— Advanced Custom Fields (@wp_acf) January 31, 2023
The ACF team holds their first open office hours this Friday! Come and talk ACF, and ask questions about building sites with the plugin.
We’d love to see you there!
📆 Friday 3rd Feb - 3pm UTC
👉 Register here - https://t.co/3UtvQbE4CU pic.twitter.com/oTwW9K1XQ0
© 2023 Advanced Custom Fields.