Home › Forums › ACF PRO › Get the $post_id in render_field method › Reply To: Get the $post_id in render_field method
To answer your question about it being impossible to use $_GET
to get the IDs, it is not hard to do for some things like posts and terms, but for widgets it is hard, because there is no $_GET
variable available (when JavaScript is enabled). You would basically have to add a filter to every widget that sets a global variable or something similar. But since ACF is already doing all the work, why not share it?
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.