ok so I have a Field Group called Pub Data and then I have a a custom field called: pub_name
I have setup a template with 2 pubs added to the group with the following code:
echo '<p>' . get_field('pub_name') . '</p>';
I can’t get any data out??!
There isn’t enough information in your description to help you.
Where does the field group appear, on a post type, a category or term, on an options page, somewhere else?
What template are you trying do show the fields on, a page template, something else?
Does/did the page/post exist prior to creating the group and or fields within the group. If the post/page is not saved/updated “after” the field is created it doesn’t exist in the post meta and will return nothing.