This is searchable archive of our old support forums, which operated from 2012 - 2016. To find out how to get support for your current theme, please visit our support page.

Reply To: Default thumbnail image

#2796
littleantz
Participant

Hi jason,

I was looking for something similar to this

======= CODE START ===========
<?php if ( has_post_thumbnail() ) {
the_post_thumbnail();
} else { ?>

<?php } ?>

========= CODE END =========
to be inserted in your framework. So if there is no featured image specified it falls back to the default.

Thanks

  • This reply was modified 7 years, 8 months ago by littleantz. Reason: code is wrongly formatted
  • This reply was modified 7 years, 8 months ago by littleantz. Reason: code tag not working properly
  • This reply was modified 7 years, 8 months ago by littleantz. Reason: change code block to pre
  • This reply was modified 7 years, 8 months ago by littleantz. Reason: can't post code so i paste it as normal text