mercredi 11 septembre 2019

how to put html into else

i have a problem with under code . how to put a html code in //do nothing; place ??

<?php 
$matnmusic = get_post_meta($post->ID, 'matnmusic', true);
if ($matnmusic) { ?>
<p><h3><div class="matn-ms" style="text-align: center ; color: #400361 "> <? echo $matnmusic; ?></h3></p>
<?php 
} else { 
// do nothing;
}
?>

example in under code erorr :

<?php 
$matnmusic = get_post_meta($post->ID, 'matnmusic', true);
if ($matnmusic) { ?>
<p><h3><div class="matn-ms" style="text-align: center ; color: #400361 "> <? echo $matnmusic; ?></h3></p>
<?php 
} else { 

lyrics } ?>

Aucun commentaire:

Enregistrer un commentaire