Home › Forums › ACF PRO › Get values in a widget with get_post_meta() › Reply To: Get values in a widget with get_post_meta()
Hi James
Thank you for your reply.
Unfortunately it did not work and returned nothing. I’m trying to pull the field value in a widget which is placed on the “Your latest posts” page as index.php.
I’ve also tried using the get_option('page_for_posts');
and get_option('page_on_front');
to get the id of this page. If i just print the get_option()
function it will return the id, but inside the get_post_meta()
it always return an empty string.
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.