WordPress.org

Ready to get started?Download WordPress

Forums

All in One SEO Pack
OG:Description is wrong (2 posts)

  1. satoshy86
    Member
    Posted 1 year ago #

    Hi,
    i thing there is a bug on latest version on All In One Seo, since OG:Description meta tag show always the page/post excerpt also if a custom description is present.

    I have resolved editing this line of code on "aioseop_opengraph.php", start at line 358

    if ( !empty( $description ) )
    	$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $post->post_content ) ), 1000 );

    with:

    if ( empty( $description ) )
    	$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $post->post_content ) ), 1000 );

    Negation removed on if condition.

    Bye.

    https://wordpress.org/plugins/all-in-one-seo-pack/

  2. Peter Baylies
    Member
    Plugin Author

    Posted 1 year ago #

    Hi satoshy86,

    There is a bug here with description handling, as has been covered in the forums here, and it will be fixed in the next release.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.