
Elliot –
Here is the full section of code.
<?php if(get_field('pro_perf')) {
while(has_sub_field('pro_perf')) {
$date_id = 1;
echo '<p> ' . get_sub_field('pro_perf_date') . '<br /> ';
if(get_sub_field('pro_perf_time_repeat')) {
while(has_sub_field('pro_perf_time_repeat')) {
if($date_id <= 1 ) {
$date_tags = get_sub_field('pro_perf_time_tag');
if($date_tags) {
foreach($date_tags as $date_tag) {
$t_data = get_option("event_tag_$date_tag->term_id_term_color");
echo $t_data;
echo '<span class="tagbox" style="background:' . $color . ';">' . $date_tag->slug . '</span>';
}
echo '<a class="date" href="' . get_sub_field('pro_perf_time_link') . '">' . get_sub_field('pro_perf_time') . '</a>';
} else {
echo '<a class="date" href="' . get_sub_field('pro_perf_time_link') . '">' . get_sub_field('pro_perf_time') . '</a>';
}
} else {
$date_tags = get_sub_field('pro_perf_time_tag');
if($date_tags) {
foreach($datetags as $datetag) {
echo '<span class="tagbox"> ' . $date_tag->slug . ' </span>';
}
echo ' | <a class="date" href="' . get_sub_field('pro_perf_time_link') . '">' . get_sub_field('pro_perf_time') . '</a>';
} else {
echo ' | <a class="date" href="' . get_sub_field('pro_perf_time_link') . '">' . get_sub_field('pro_perf_time') . '</a>';
}
}
$date_id ++;
}
}
echo '</p>';
}
}?>
Also, to answer your other questions, in my rushed state to post, I did not see the code button as an option. I am also fairly new to forums like this and the truth is it was just laziness and frustration but in the future I will make sure to properly address those issues and be a better community member.