Setting A Default Featured Image For Your WordPress Posts

Featured images are becoming the must-have element of every blog posts. They makes the post listings look prettier and, if you set them right, they may tell your blog visitors something about the posts. There are times you publish a post without a featured image. It’s because you forget or you haven’t found an appropriate featured image for that post yet. Whatever the reason, if one of your post doesn’t have the feature image while other do, it will make the listing look less attractive. The solution is to set a default featured image for all posts. If you have a featured image for your post, then the default featured image will not show. However, in case you don’t set, your post will have the default featured image as its featured image.

How to set default featured image to your posts

We are going to use a plugin called Default Featured Image which you can download here.

The plugin is actually very simple and easy to use. After installing, you can find the plugin’s option page at Settings->Media:

Setting A Default Featured Image For Your WordPress Posts 2

After clicking on that, you will see a panel to set the options for your default featured image:

Setting A Default Featured Image For Your WordPress Posts 3

You can see that the settings are very self-explanatory and need little further instructions. Here, you can set the size of the featured images from Thumbnail size (smallest) to Large size. In the screen, the image’s aspect ratio is 1:1. However, your image may have different aspect ratio. You need to set the size according to the image’s aspect ratio to avoid distortion.

At the number 4, you can click on the “Select default featured image” to set the image you want to use as featured image.

The last checkbox should be checked to keep  your file organized.

Finally, click on Save changes. Now, every posts without featured image will use this image instead.

Conclusion

I personally thing this plugin is a simple, yet powerful and useful. If I develop something similar, I would add the option to set default image for WooCommerce product too. However, this plugin is completely free and does its job brilliantly, there is nothing more I can ask.

 

 

How To Display Posts As Grid Or As List In WordPress

There are sometimes you want to list your posts or product is a single page. Maybe your visitors requests it, maybe you find it’s necessary. I myself feel the way WordPress’ display the posts are quite basic. What if I want to display posts in multiple columns, say 2, 3 or even 4 columns instead of one? What if I want to display the featured image in the post list? I couldn’t do that with WordPress’ native posts display. Luckily, there is a plugin can solve that problem.

Meet the plugin WP Show Posts

WP Show Posts is the plugin that let you customize the way your posts are listed. If you know WordPress, the term “post” isn’t limited to just your blog posts. Your Woocommerce is a post, your custom post types are posts too. That means if you want to display your products or your custom post types with a customized manner (like with multiple columns), you can do with this plugin.

The first thing you need to do is to install WP Show Posts from here: https://wordpress.org/plugins/wp-show-posts/

After that, activate it and you’ll see WP Show Posts menu at the left menu:

How To Display Posts As Grid Or As List In WordPress 7

Now, let’s create a posts list by clicking on Add New link under that title. You would see something like this:

How To Display Posts As Grid Or As List In WordPress 8

Click on the number 1 to select the kind of “post” you want to include in the list. As I mentioned above, you can choose your posts, your products or your custom post types here.

On Taxonomy option (number 2), you can select the source of the posts by category or by posts’ tags. If you select category, the list under the Terms title is list of categories. If you select posts’ tags, under Terms would be list of tags.

Number 3, post per page should be self explanatory. That’s the number of posts you want to display per page.

Click on the Columns tab to specify how many columns and their gutter:

How To Display Posts As Grid Or As List In WordPress 9

You can change the number of columns from 1 to 5. Normally, people would choose from 2 to 4, 1 or 5 columns are rare.

On the image tab, you can set options for the images such as its alignment in a single post, its width and height:

How To Display Posts As Grid Or As List In WordPress 10

The content tab lets you specify what kind of content will be present in a single listing. Normally, an excerpt is what people use in these kind of lists.

How To Display Posts As Grid Or As List In WordPress 11

The meta tab lets you display additional details about the post such as post author, date of post…

How To Display Posts As Grid Or As List In WordPress 12

Further tweaks can be found in additional settings, which the author of the plugin did a great job to make them self-explanatory.

After setting all the options, you can now click on publish to make the list live. You will see a shortcode appears at the bottom right. Copy that and paste anywhere you want to display the list:

How To Display Posts As Grid Or As List In WordPress 13

 

Now, I’ll create  new post and paste the shortcode. Here is the result:

How To Display Posts As Grid Or As List In WordPress 14