Support » Plugin: Yoast SEO » [Plugin: WordPress SEO by Yoast] Meta Description now displaying %%excerpt%%

  • Resolved kiets


    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
    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
    focuskeyword, big red car

    So 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?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Also note if i do use them together, yoast post titles and also the
    <meta name=”description” content=”<?php the_excerpt_rss(); ?>” /> in my header, the result is:

    <!-- meta tags -->
    <meta name="description" content="big red car" />
    <!-- This site is optimized with the Yoast WordPress SEO plugin v1.1.7 - -->
    <meta name="description" content="focuskeyword"/>

    Then, google does not pickup the second meta desc, and display this post as

    Big Car
    big red car

    Is some code like
    <meta name=”description” content=”<?php focuskeyword(); ?>” /> , <?php the_excerpt_rss(); ?>” /> possible? because that would work.

    Plugin Author Joost de Valk


    There’s no use to have two meta descriptions, just let my plugin handle it…

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘[Plugin: WordPress SEO by Yoast] Meta Description now displaying %%excerpt%%’ is closed to new replies.