I get a syntax error when I add an array. Will someone point out where I have made a mistake?
function commresi() {
ob_start();
?>
<?php if( has_term=array('commercial',’commercial-filtration’,'commercial-water-softeners’,’category') ) { ?>
<p class="commercial com-res"><a href="/home">Visit Residential Systems</a></p>
<?php } else { ?>
<p class="not-commercial com-res"><a href="/commercial">Visit Commercial Systems</a></p>
<?php } ?>
<?php
return ob_get_clean();
}
add_shortcode('comres', 'commresi');