show thumbnail for subcategory wordpress

WordPress taxonomies (Categories and Tags) do not have featured images, so there is nothing ‘standard’ that you can use. Therefore you need to customise your code to suit by using Custom Fields to extend the taxonomy to include an image. However, manually coding this becomes somewhat more complicated when using Images from your media library … Read more

How to use default image as featured image by implement some code in function.php

To make your existing code work you’ll also need to override has_post_thumbnail: add_filter( ‘has_post_thumbnail’, ‘__return_true’ ); since your theme is probably guarding get_the_post_thumbnail() with has_post_thumbnail(), so that now needs to return true in the default case. However there’s still a chance that this won’t work, if the theme you’re using goes directly to get_post_thumbnail_id(). To … Read more

Search results thumbnails different size

This is down to difference in the classes output by different types of content in your theme’s search page. The CSS of your theme restricts the width of Posts to 50% of the screen with this rule .blog-area .type-post.size-2×1 { width: 50%; } But for your project content, there is no ‘type-post’ or ‘size-2×1’ classes … Read more