Hi there!
I have been trying to use my repeater field data, same way I do it @ all other websites.
I have this code:
$rows = get_field('galleri'); // "galleri" is the field name on the repeater
if($rows)
{
// bla bla code here
} else {
echo 'not found';
}
And it keeps outputting "not found".
I use the code in my theme, at "page-home.php".
What am I doing wrong?
I have been trying to use my repeater field data, same way I do it @ all other websites.
I have this code:
$rows = get_field('galleri'); // "galleri" is the field name on the repeater
if($rows)
{
// bla bla code here
} else {
echo 'not found';
}
And it keeps outputting "not found".
I use the code in my theme, at "page-home.php".
What am I doing wrong?