Home › Forums › General Issues › get_field not returning values › Reply To: get_field not returning values
** edit **
Ok, so weird but I reloaded it 100s of times and it did not work. Without changing a line of code, when I posted my complaint below, the next time I reloaded, it worked. And I’m using the wp-cli wp serve
so I’m sure nothing is cached.
Anyhow …
*****
Hi there! I have a similar problem, but mine is that it works fine if my page is http://site.com/front-page
But when I set the front page to a static page via wordpress, so that it will access that page from
http://site.com
Then it fails and get_field(‘fieldname’) doesn’t return anything. Any pointers?
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.