Hello, I get started with ACF, created some examples of text, but all ACF functions are returning NULL or bool(false), according to the var_dump().
And I tried to print with:
<h2><?php the_field('header_description'); ?></h2>
<h2><?php get_field('header_description'); ?></h2>
Nothing is working for me.
Hi,
It may be a stupid question but did you fill your custom fields in the post/page you want them to be ? Because your code is correct so it could be because of that.
Same here.
Created a custom field for a custom taxonomy. Added some dummy Text for testing. Added <?php the_field( 'name of my field' ); ?>
to the archive tamplate of the custom taxonomy. Nothing displays.
I have similar problem but with the content more field
I set up some title content and content more row, but the content more datas does not appear on my page. Could You please help me why?
Unfortunately I am not proficient in programming, but i think i found the relevant code:
“<? elseif (get_row_layout() == ‘content_more’): // layout: Content more ?>
<div class=”content_more anim_long row_content_<? echo $i; ?>”>
<div class=”content_wrapper hide”>
<? the_sub_field(‘content_more’); ?>
</div>
” href=”javascript:void(0)”>Read the full story
</div>”
https://imgur.com/KaK2iUe admin/page
https://imgur.com/0egRi2k admin/acf field groups
The title and the content fields are appearing fine on the homepage (after the age verification). And there is the content more field, what should appear when You click on the “read the full story” button. But if You click the button nothing happening.
The site: spanishoakbrandy.eu
Thanks for your answer!
Best regards