I know how to use the conventional get_post_meta, and I usually call it with each field separately. Is there a way to use them all at once? For example, use an if statement to display content if any metabox field has content. Not specific to one, but any in the post.
I tried searching for this with no success
So far this works but what if we have a lot of more metaboxes, no easy check on all to find value?
<?php $meta1 = get_post_meta( $post->ID, 'metabox_1', true );
$meta2 = get_post_meta( $post->ID, 'metabox_2', true );
if (!empty($meta1) || !empty($meta2)){?>
//do stuff
<?php } ?>