[Plugin: WordPress SEO by Yoast] Meta Description now displaying %%excerpt%%
-
My scenario is that i use a plugin that generates 1 latest search term at the bottom of the post, lets say “big red car”. So in my header if i have
<meta name="description" content="<?php the_excerpt_rss(); ?>" />
google will display it in the search results as
Big Car
https://www.sitename.com/category/cars
big red car
———————————–The results is i want to remove that code and let Yoast SEO do all the work. I want to display the Focuskeyword, and also the auto generated search term the other plugin throws out. Essentially:
Big Car
https://www.sitename.com/category/cars
focuskeyword, big red carSo i delete the
<meta name="description" content="<?php the_excerpt_rss(); ?>" />
from my head and let Yoast SEO do it.In the SEO post titles, i add “%%focuskw%% %%excerpt%%” at the meta description. But i see that it does not recognize the auto generated text. It only shows the focuskeyword.
Is this because the auto generated term is not hard coded into the post itself? because its not. But
<meta name="description" content="<?php the_excerpt_rss(); ?>" />
picks it up as if it were. How can i get Yoast SEO to pick it up as well?
- The topic ‘[Plugin: WordPress SEO by Yoast] Meta Description now displaying %%excerpt%%’ is closed to new replies.