Hide Div if class blank

Question

I want to hide the div class ‘contract’ if the person’s name is blank.

Here is the code i currently have, and the webpage is https://www.mgmclaren.com/about-us/our-people/. I tried the css display:none, but it doesnt work since it is a class that is always shown.

r”;
$opn=1;
}
$image_id = $row[‘person_headshot’];
$image = wp_get_attachment_image_src($image_id, ‘medium’);
echo “ttttt“.$row[‘person_name’].”“.$row[‘person_title’].”

“.$row[‘person_bio’].”

Read lessRead morer”;

$cnt++;
if($cnt % 4 == 0){
echo “tttt”;
$opn=0;
}
endforeach;
if($opn==1) echo “tttt”;
?>

0
Robin 2 months 0 Answers 7 views 0

Leave an answer