Post ONLY title and link (and NOT excerpt) in Google + page (1 post)

  1. fouldsy99
    Posted 1 year ago #

    I am trying to limit the post excerpt, as when sharing with google + page, the share button is cut off the page.

    If I can limit or remove the exceprt the share button would be displayed rather than be cut off.

    Below is the code from my header.php and I'm guessing this is what displays the excerpt when sharing?

    <meta property="og:description" content="<?php echo strip_tags(get_the_excerpt ($post->ID)); ?>" />

    For an example check here when click google + you can see what I mean


Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.