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

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)