Home › Forums › Backend Issues (wp-admin) › Retrieve post_ID in divi theme visual builder › Reply To: Retrieve post_ID in divi theme visual builder
Hi guys, any tips on how to handle this one? I’m facing the very same issue.
I’ve created a shortcode to transform and concatenate content from some (AC)fields and I’m using it in a Divi block.
It works just fine on the frontend, in the Divi Builder though I’m getting totally different post IDs – both using global $post
and get_the_ID()
…not a great UX for the content editors.
Any help would be appreciated 🙂
Take care, Jan
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.