Else if here
-
How can do elseif “color2” condition in this code?
<?php if(get_post_meta($post->ID, ‘color’, single)!=””) { ?>
<h5><?php the_title(); ?></h5>
<?php } else { ?>
<h4><?php the_title(); ?></h4>
<?php } ?>—color2 is the second custom field key.—-
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Else if here’ is closed to new replies.