public
Created

thumbnail or title

  • Download Gist
thumb-title.php
PHP
1 2 3 4 5 6 7 8 9
<?php if ( has_post_thumbnail()) { ?>
 
<?php } the_post_thumbnail(); { ?>
 
<?php } else { ?>
 
<h1><?php the_title(); ?></h1>
 
<?php } ?>

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.