01/15/2016 at 12:28 pm
#361353
Participant
For each of the others, I tried to add the additional if statement.
Here is the code when I add the if statement for the “Phones” tab:
if ($atts['show_phone_numbers'] !== '') {
if ( $entry->getPhoneNumberBlock() ) {
echo '';
echo '<input type="radio" name="tabs" id="tab4">';
echo '<label for="tab4">Phone</label>';
echo '<div id="tab-content4" class="tab-content animated fadeIn">';
if ( $atts['show_phone_numbers'] ) echo
$entry->getPhoneNumberBlock( array( 'format' => $atts['phone_format'] , 'type' => $atts['phone_types'] ) );
echo '</div>';
echo ' ';
}
}
Attached is a screenshot of what happens when I add that if statement.
Thanks,
George
