Yoast SEO
[Plugin: WordPress SEO by Yoast] Opengraph Meta Description (1 post)

  1. dentvii
    Posted 3 years ago #

    Guys / Yoast,

    I have set up meta description for each of my articles, yet when outputting the og:description, I am getting an exceptional lenghty paragraph, instead of my desired 140 chars.


    I can't find any option on my social page to set my og:description as my meta of to limit the excerpt to 140, instead of the current limit of 300.


    And I don't want to change your code so I won't have to edit every time you update, because your updates rocks.

    What can be done?

    	 * Output the OpenGraph description, specific OG description first, if not, grab the meta description.
    	public function description() {
    		$ogdesc = wpseo_get_value('opengraph-description');
    		if ( !$ogdesc )
    			$ogdesc = $this->metadesc( false );
    		if ( $ogdesc && $ogdesc != '' )
    			echo "<meta property='og:description' content='".esc_attr( $ogdesc )."'/>\n";

    Thanks guys / Yoast!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Yoast SEO
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic


No tags yet.