Home › Forums › General Issues › Values not displaying
Dear ACF,
On a website I am working on the acf values are not displaying. The four widget on my home page (underneath the header image) should display a title and text. I have disabled all my plugins to see if anything conflicts, but no results. I have enabled wp_debug, not errors. I have checked the code to display the values, no results (tried shortcodes, get_value, the_field, get_field).
I’ve checked if a value is set by using:
<?php $values = get_field('widget_1_titel');
if($values) {
echo 'A value is set';
} else {
echo 'A value is not set';
} ?>
I can see the page echoing that there is no value set, although I have saved the page.
What is going wrong here, and what could be the solution?
Kind regards
Hi,
Is it possible there is a spelling mistake in this line:
$values = get_field('widget_1_titel');
With the spelling of title?
Hi,
Thanks for your reply. Unfortunately thats not the case. Titel is de dutch word for title.
Ahaa, Sorry about that.
Hmm… The code is definitely correct.
Is it possible that you are not with in the loop?
You can double check by trying to retrieve it from the page using the ID.
Find the post id, and then alter this line to (if the post id is 22):
$values = get_field('widget_1_titel',22);
Unfortunately, this is not working either. Still the same result.
Hi @projectarthouse,
This is pretty strange.
Which version of ACF are you using?
Do you mind sharing your template code so that I can have a look at what you have.
Hi I am having a very similar issue on a website i administrate http://nailsearunningclub.org.uk/
After updating to wordpress 4 the custom fields plugin has stopped displaying values on the frountend on any page, for example:
https://web.archive.org/web/20140624042720/http://nailsearunningclub.org.uk/links/
now looks like:
http://nailsearunningclub.org.uk/links/
At the back end the field editing options all load ok.
We are using the suffusion theme. We have the most up to date version (Version 4.3.9) of ACF.
The shortcode [acf] appears to be linked in to the plugin as that doesn’t display once ACF activated.
We also have Advanced Custom Fields: Repeater Field plugin installed, activating it or de-activating makes no difference.
Dear Support,
I am using the latest version of your plugin. Very strange problem! I need to solve this asas, since my client can’t put his site live now…
You must be logged in to reply to this topic.
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!
🚨 The 2023 ACF Annual Survey closes tomorrow! This is your last chance to complete the survey and help guide the evolution of ACF. https://t.co/0cgr9ZFOJ5
— Advanced Custom Fields (@wp_acf) May 18, 2023
© 2023 Advanced Custom Fields.
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 Cookie Policy. If you continue to use this site, you consent to our use of cookies.