I have a problem with the below code. How do I put html code into //do nothing;
's 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;
}
?>
I have tried as below, but this code gives an error:
<?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 {
<center><span id="button"><a title="lyrics" href="/send-lyric/" style="color:#FFF;">lyrics</a></span></center>
}
?>