• Resolved contactwis

    (@contactwis)


    Hello,

    I have an issue with my WordPress, when I manually add a meta description using Yoast in a specific post, it doesn’t replace the WP meta desc but add it to the first one, any idea why? Thanks (see attachment).

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter contactwis

    (@contactwis)

    Any answer?

    Here si my header: `<?php if ( is_single() ) : ?>
    <?php $post_image_url = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), ‘large’); ?>
    <?php $post_description = ct_get_excerpt_by_id( $post->ID ); ?>
    <meta name=”description” content=”<?php echo $post_description; ?>” />
    <?php endif; ?>

    <?php if ( is_page() ) : ?>
    <?php $page_description = ct_get_excerpt_by_id( $page->ID ); ?>
    <meta name=”description” content=”<?php echo $page_description; ?>” />
    <?php endif; ?>`

    What can I do? Thanks

    Plugin Support devnihil

    (@devnihil)

    @contactwis We’re sorry to hear you are experiencing this issue on your site.

    We checked on the URL of the example page you provided and reviewed the source code and only see a single meta description being output, which is the following:

    <meta name="description" content="En entreprise, la communication et les échanges avec les partenaires et les clients représentent un besoin fondamental. C’est pourquoi des moyens de plus Cloud Eco est une structure qui aide les entreprises à mettre en place une méthode de communication performante : la téléphonie sur IP." />

    If you clear your cache (server, plugin/theme, browser, or CDN such as Cloudflare) does this resolve the issue with seeing a second meta description output? If you are not sure how to clear your server cache you should speak with your host provider. We have information on how to clear your browser cache at the following link: https://yoast.com/help/how-to-clear-my-browsers-cache/.

    Hey,

    This thread has been marked as resolved due to lack of activity by the original poster. The original poster is always welcome to re-open this topic.

    If you are not the original poster but have a similar issue, please read this post before opening a new request.

    • This reply was modified 2 years, 8 months ago by Jeroen Rotty. Reason: fix typo
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘2 meta desc on posts?!’ is closed to new replies.