Home Forums ACF PRO Post_object fields in vCard Reply To: Post_object fields in vCard

  • I don’t quite know what the vcard syntax is, but you cn find that somewhere else.

    Looking at your code, I would do it as follows:

    $field = get_field_object("location");
    echo "<h5>" . $field['label'] . "</h5>";
    $post_object = get_field('location'); 
    if ( $post_object ) : 
        <p><?php the_field('street_address', $post_object->ID); ?><br>
        <?php the_field('suite_office', $post_object->ID); ?><br>
        <?php the_field('city', $post_object->ID); ?>, <?php the_field('state', $post_object->ID); ?><?php the_field('zip_code', $post_object->ID); ?>