After updating to 2.1.3 descriptions messed up
-
After updating to 2.1.3 all the descriptions to the social are messed up. Home page and Posts descriptions are showing the text from the content. I am using AIOSEO Title and Description.
-
Hi paular,
Can you provide a URL for your site and we can take a look.
Hi paular,
This is a bug, I’ll see that it is fixed in the next release; in the meantime, you can fix this by replacing line 359 in aioseop_opengraph.php
The old line should look like this:
$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $post->post_content ) ), 1000 );
Replace it with this:
$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( '/\s+/', ' ', $description ) ), 1000 );
Good Afternoon,
I am having the same issue, I’ve replaced the code as instructed but unfortunately it’s still not working. See here.
oops – Thank you for your assistance.
I forgot to mention it’s affecting both og:description and twitter:descritpion.
Thnks it worked like a charm!!
Hi Peter,
The code above is not working for me, it’s not using the aiosp Title and Description, it’s creating it’s own description from the content on the page, see below:
<meta property=”og:description” content=”I'm sorry for being so tardy in sharing this Pear and Walnut Bread but unfortunately my mom suffered a stroke a few days after my nephew's wedding. It's come as a complete shock because mom has always been so healthy. She's still in the critical care department because she's not been able to breathe without the assistance of a machine but we're really hopeful that she'll be off the machine within the next couple of days. We're not certain as to how much damage has been done because she hasn't been able to speak because of the breathing tube. My biggest fear is that she won't remember who we are. I haven't stopped praying since this nightmare began. My mom is the strongest woman I know and I think with time she'll make a full recovery but the waiting has been unbearable, I just want to hear her voice. My mom is one of those people that have a memory like an elephant; she can describe an event from twenty years ago as if it took place yesterday. I hope in time she'll be able to” />
<meta name=”twitter:card” content=”summary” />
<meta name=”twitter:description” content=”I'm sorry for being so tardy in sharing this Pear and Walnut Bread but unfortunately my mom suffered a stroke a few days after my nephew's wedding. It's come as a complete shock because mom has always been so healthy. She's still in the critical care department because she's not been able to breathe without the assistance of a machine but we're really hopeful that she'll be off the machine within the next couple of days. We're not certain as to how much damage has been done because she hasn't been able to speak because of the breathing tube. My biggest fear is that she won't remember who we are. I haven't stopped praying since this nightmare began. My mom is the strongest woman I know and I think with time she'll make a full recovery but the waiting has been unbearable, I just want to hear her voice. My mom is one of those people that have a memory like an elephant; she can describe an event from twenty years ago as if it took place yesterday. I hope in time she'll be able to” />
I changed the code as instructed, see below:
/* If Use AIOSEO Title and Desc Selected */
if( $setmeta ) {
$title = $aioseop_options[‘aiosp_home_title’];
if ( $first_page )
$description = $aioseop_options[‘aiosp_home_description’];
}/* Add some defaults */
if( empty($title) ) $title = get_bloginfo(‘name’);
if( empty($sitename) ) $sitename = get_bloginfo(‘name’);if ( empty( $description ) && $first_page && ( !empty( $this->options[‘aiosp_opengraph_generate_descriptions’] ) ) )
$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( ‘/\s+/’, ‘ ‘, $description ) ), 1000 );if ( empty($description) && $first_page ) $description = get_bloginfo(‘description’);
I’ve updated and clear cached and browser cache several times but unfortunately still no change.
Thanks for your help.
Grace
Hi Peter,
The code above is not working for me, it’s not using the aiosp Title and Description, it’s creating it’s own description from the content on the page, see below:
<meta property=”og:description” content=”I'm sorry for being so tardy in sharing this Pear and Walnut Bread but unfortunately my mom suffered a stroke a few days after my nephew's wedding. It's come as a complete shock because mom has always been so healthy. She's still in the critical care department because she's not been able to breathe without the assistance of a machine but we're really hopeful that she'll be off the machine within the next couple of days. We're not certain as to how much damage has been done because she hasn't been able to speak because of the breathing tube. My biggest fear is that she won't remember who we are. I haven't stopped praying since this nightmare began. My mom is the strongest woman I know and I think with time she'll make a full recovery but the waiting has been unbearable, I just want to hear her voice. My mom is one of those people that have a memory like an elephant; she can describe an event from twenty years ago as if it took place yesterday. I hope in time she'll be able to” />
<meta name=”twitter:card” content=”summary” />
<meta name=”twitter:description” content=”I'm sorry for being so tardy in sharing this Pear and Walnut Bread but unfortunately my mom suffered a stroke a few days after my nephew's wedding. It's come as a complete shock because mom has always been so healthy. She's still in the critical care department because she's not been able to breathe without the assistance of a machine but we're really hopeful that she'll be off the machine within the next couple of days. We're not certain as to how much damage has been done because she hasn't been able to speak because of the breathing tube. My biggest fear is that she won't remember who we are. I haven't stopped praying since this nightmare began. My mom is the strongest woman I know and I think with time she'll make a full recovery but the waiting has been unbearable, I just want to hear her voice. My mom is one of those people that have a memory like an elephant; she can describe an event from twenty years ago as if it took place yesterday. I hope in time she'll be able to” />
I changed the code as instructed, see below:
/* If Use AIOSEO Title and Desc Selected */
if( $setmeta ) {
$title = $aioseop_options[‘aiosp_home_title’];
if ( $first_page )
$description = $aioseop_options[‘aiosp_home_description’];
}/* Add some defaults */
if( empty($title) ) $title = get_bloginfo(‘name’);
if( empty($sitename) ) $sitename = get_bloginfo(‘name’);if ( empty( $description ) && $first_page && ( !empty( $this->options[‘aiosp_opengraph_generate_descriptions’] ) ) )
$description = $aiosp->trim_excerpt_without_filters( $aiosp->internationalize( preg_replace( ‘/\s+/’, ‘ ‘, $description ) ), 1000 );if ( empty($description) && $first_page ) $description = get_bloginfo(‘description’);
I’ve updated and clear cached and browser cache several times but unfortunately still no change.
Thanks for your help.
Grace
- The topic ‘After updating to 2.1.3 descriptions messed up’ is closed to new replies.