Solve the problem of duplicating description in search engines for WordPress blog


In this post, we will address the problem of duplicating the description in search engines. Some of the owners of WordPress blogs may suffer from it, or the majority, I think, and God knows best. This problem lies either in the template you are using or not using a plugin for this purpose to specify the description and keywords for each post separately . As for the impact of this problem on the site in the search engines, I think, and God knows best, it will have a side effect, although I am not an expert in this field, that it will have an impact on other things, for example, sharing posts on Facebook. You will notice that when you share the post, a description of the blog is displayed, not the post This is the result of the problem that we are going to talk about today so that I don’t get into the heart of the matter for youA simple note, search engines depend on the following meta: content and keywords in the source code of the page. Also, do not forget the title (title) to display it in the search pages. It can also be said that it is an introduction to the page and what it contains for search engines, and it is often in the following order :

<title></title>
<meta name="description" content="" />
<meta name="keywords" content="" />

the problem

There are many templates that have a place dedicated to SEO. This feature is not used at all because it is the root of the problem. This feature gives the same description and keywords for all pages on your site without exception. In order to complete the idea, we take, for example, the NewsToday template, from the template control panel. You will find the SEO settings. Fill them with any description you want, as in the picture, just to try and save the settings

seo theme options - WordPress Magazine

The important thing is, after saving the settings, browse the site and open any post, then right-click and choose to view the source code for the page, for example:

page source code meta seo - WordPress Magazine
Click on the image to view original size

You will find that the description has not changed according to the post you are browsing, meaning that it does not change the description that we added from the template control panel, and this is due to the following two lines:

<meta name="description" content="<?php echo get_option("seo1"); ?>" />
<meta name="keywords" content="<?php echo get_option("seo2"); ?>" />

The two specialized lines in the description and keywords you will find in the header file (header.php) and they differ from one template to another and it does not have to be the same code shown above, and the difference is always as shown in the following two lines:

<meta name="description" content="The difference between templates here" />
<meta name="keywords" content="The difference between templates here" />

The solution

To solve this problem, you will have to delete the two lines in order to avoid the problem of duplication. But in this case, you must install a plugin such as all in one seo pack in order to fully control the description and keywords. To learn more about the plugin, please review this post by Brother Rashid in the Arab WordPress Forums

Conclusion

In the end, this solution will take time for the search engines to adopt it, so please wait and to make sure that the matter is passed correctly, check the source code for posts and search for the description and see if it agrees with the post or not.

If there is any query please put a comment? And don’t forget to subscribe to our mailing list, thank you very much

Peace, mercy and blessings of God

Leave a Comment