Viewing 1 replies (of 1 total)
  • Thread Starter Virtuallaw

    (@virtuallaw)

    Tried this, too.

    <meta property="og:description" content="<?php $og_object = WPSEO_Frontend::metadesc(false); echo $og_object; ?>" />

    Works on home (static page) and posts, but triggers a FATAL ERROR on categories and pages:

    <meta property="og:description" content="<br /> <b>Fatal error</b>: Using $this when not in object context in <b>/home/content/15/8771615/html/lawoffice_at/wp-content/plugins/wordpress-seo/frontend/class-frontend.php</b> on line <b>1136</b><br />

Viewing 1 replies (of 1 total)
  • The topic ‘How to manually add WP SEO Description to og:description?’ is closed to new replies.