Though I have stopped using keywords these days; however, they are equally important to improve your website’s SEO ranking and traffic. Here I will let you know how to add a custom field, Meta Description, to your WordPress.
How to Add Meta Description
To add Meta Description in WordPress, one needs to know PHP coding. Well, I have little knowledge about PHP, but I look for it through other example codes. Here is what I have learned.
Now I am able to use a custom field where I can get unique meta descriptions as well as meta keywords for each post and the homepage of my website.
You need to do a lot of coding to create a custom field for meta descriptions and meta keywords. For the homepage, the coding is complex than for category pages.
To get a unique meta description and meta keywords in WordPress, you need to write the code. Then copy and paste that code in your WordPress template below the head section of the header. Now the system will run the code and verify whether it’s for the homepage or not.
If it is a homepage, it will use meta descriptions and meta keywords. Otherwise, it will look up in custom fields and use descriptions and keywords from there.
Hence with a little bit of coding, you can add custom meta descriptions and keywords to any of your web pages.