Home › Forums › General Issues › get_field(); returns blank value › Reply To: get_field(); returns blank value
I changed to
<?php
global $post;
$forside_slagord_stor = get_field(‘forside_slagord_stor’, $post->ID);
$forside_slagord_liten = get_field(‘forside_slagord_liten’, $post->ID);
$forside_slagord_liter = get_field(‘om_oss_tekst’, $post->ID);
?>
And set “forside” to my static frontpage. than it worked. Thank you for your answer
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.