G
G
Gedonist2017-07-28 18:46:50
HTML
Gedonist, 2017-07-28 18:46:50

How to display meta description tag on category page in WordPress?

The question is not as easy as it seems at first glance, and yes, I read what they write in the search engine about this.
So, I am migrating a site with a forgotten CMS to WordPress. I transfer with the preservation of the address structure, layout, and so on. Actually, I was already nearing completion when I stumbled upon this problem.
Most of the articles on the site are, in WP logic, category title pages. I moved the articles to the description field of the respective categories, and configured the output of this variable in category.php.
But now I realized that some pages also contain a description meta tag, which also needs to be transferred.
All instructions on the internet talk about how to display the description field as the description meta tag.
And I need a separate field that should be displayed as a meta tag. How to approach the issue?
You can create a custom field for a post, but there is no such functionality for a category in WP. Maybe a plugin?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
W
WordPress WooCommerce, 2017-07-28
@Gedonist

SEO Yoast. It adds its own MetaDescription field, which is stuffed into the header meta tags.

D
Dmitry Udimov, 2017-08-05
@Topvisor

Through the All in One SEO plugin, you can

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question