Title: Version 2 Broken Site :(
Last modified: August 21, 2016

---

# Version 2 Broken Site :(

 *  Resolved [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/version-2-broken-site/)
 * Hi guys,
 * I use this code to output the description on to the actual page
 *     ```
       <?php if(function_exists('aiosp_meta')) : ?>
       <?php $description = stripcslashes(get_post_meta($post->ID, '_aioseop_description', true)); ?>
       <?php if(!empty($description)) : ?>
       <?php echo $description; ?>
       ```
   
 * This no longer works with the latest version. Any ideas what can be done?
 * Thanks!
    Matt
 * [http://wordpress.org/extend/plugins/all-in-one-seo-pack/](http://wordpress.org/extend/plugins/all-in-one-seo-pack/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/version-2-broken-site/#post-3689144)
 * mattblank,
 * What you’re doing should still work, but you don’t need to be checking for an
   aiosp_meta function; you could check for the existence of the AIOSEOP_VERSION
   constant instead, for example:
 * `
    <?php if( defined( 'AIOSEOP_VERSION' ) ) { $description = stripcslashes( get_post_meta(
   $post->ID, '_aioseop_description', true ) ); if ( !empty( $description ) ) echo
   $description; }
 *  Thread Starter [Matt Blank](https://wordpress.org/support/users/mattblank/)
 * (@mattblank)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/version-2-broken-site/#post-3689150)
 * Thank you! 🙂 That’s fixed it!
 * My last question, whilst you’re here, is there anyway to have the description
   also become the description for og:description, so that when posting to Facebook,
   it shows the SEO description?
 * Thanks!
    Matt
 *  [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * (@pbaylies)
 * [13 years, 1 month ago](https://wordpress.org/support/topic/version-2-broken-site/#post-3689201)
 * Matt,
 * There currently is not an option for this in the free plugin; however, there 
   is an option for this in the Pro version, in the new Social Meta module.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Version 2 Broken Site :(’ is closed to new replies.

 * ![](https://ps.w.org/all-in-one-seo-pack/assets/icon.svg?rev=2443290)
 * [All in One SEO – Powerful SEO Plugin to Boost SEO Rankings & Increase Traffic](https://wordpress.org/plugins/all-in-one-seo-pack/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/all-in-one-seo-pack/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/all-in-one-seo-pack/)
 * [Active Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/all-in-one-seo-pack/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/all-in-one-seo-pack/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Peter Baylies](https://wordpress.org/support/users/pbaylies/)
 * Last activity: [13 years, 1 month ago](https://wordpress.org/support/topic/version-2-broken-site/#post-3689201)
 * Status: resolved