AlxMedia / kontrast

Kontrast WordPress Theme

Home Page:http://alx.media/themes/kontrast/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Featured image not shown on default post-type setting

kalahiri opened this issue · comments

Hi. Compliments for your work!

I would like to make a suggestion.

I am installing this template on a site with some thousands posts already in the database. The post_type of these existing posts is not set. I do not know why, as I am just hired for the moment to redesign the layout.

But with (post_type == false) the theme does not show a featured image. If post_type is empty, it just skips the whole process looking for a possible has_thumbnail().

I can, of course, set all the posts to post_type = 'image'. However, it feels more natural there would be a default situation to look for a has_thumbnail, as your theme is build around the idea of having a (featured) image with your post.

My work-around is that I copied the single.php to my child theme and added a default setting if post_type == false.