vendredi 27 janvier 2017

Combine PHP Statements

Using this code:

<div class="venus"><span class="ricon">Established</span><span class="locko"><?php the_field('br_estd'); ?></span></div>

However, I need to wrap this within another PHP IF statement:

<?php $mista = get_field('br_presence'); if ( strval($mista) == 'Worldwide') {echo "PLACE CODE ABOVE HERE" ;} ?>

How could I syntax this?

Aucun commentaire:

Enregistrer un commentaire