Meta descriptions are very important for blogs and websites especially when it comes to search engine optimization. However, WordPress meta descriptions are not automatic. Many bloggers get problems the meta decriptions for the home page are the same with the those for the single pages.
The best method is to have different meta descriptions for home page and for single pages. This is so because the home page represents the contents of the the whole blog or site and it should have descriptions which represent the whole blog. The single page description should have excerpts from that page.
In order to achieve that objective, you would need insert a simple code in you WordPress blog by following the procedure below
Login in to your WordPress dashboard
Under appearances, click on Editor
Then click on the header link
Then insert the code below
<code><?php if ( (is_home()) || (is_front_page()) ) { ?><meta name=”description” content=”Blog description goes here” /><?php } elseif (is_single()) { ?><meta name=”description” content=”<?php the_excerpt();?>”/><?php } ?></code>
That is it, now have meta description on the homepage as well as single posts. Please do not forget to insert the description for your home page where you see the words “Blog description goes here”, if you forget, those words will act as your meta description.
0 Comments.