Home › Forums › General Issues › Populate WYSIWYG field with post object › Reply To: Populate WYSIWYG field with post object
Hi @dalbeck
You can achieve this by writing some custom jQuery / PHP. If you are not familiar with writing custom jQuery / AJAX / PHP scripts, you may need to contract a developer to do this for you.
Upon ‘change’ of the post object field, you will need to perform a custom AJAX query to get the selected post’s content.
With the post’s content returned, you will then need to use JS to update the WYSIWYG field. This is not the easiest task, but is possible by reading over the js/input.js
file and scrolling down to the WYSIWYG section. You will see many tinymce functions which you can use to update the value.
Thanks
E
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.