I’ve created a custom post type of Footer(s) and setup a range of custom fields for this type. I’ve created a repeater field (shortcuts) with a sub field of shortcut.
Now I want the get the damn values.
I get the field for the post by id, using:
if ( have_rows('shortcuts', $footer_id) ) :
And now my logic (after reading the docs) make me try this:
while ( have_rows('shortcuts') ) : the_row();
echo the_sub_field('shortcut');
endwhile;
But – as usual I might add – I get nothing.
What am I missing this time?
I’m outside the loop using get_post( 83 );
Well, missed the $footer_id in the while loop …