• Resolved cmolyn

    (@cmolyn)


    I have found that when this plugin is enabled, og:image is removed from all the other pages in the site. I am using the YOAST plugin to set the og:image for each post and page.
    add_filter('wpseo_opengraph_image', array($this, 'seoImageUrlHandler'));
    in line 178

    It works on the pages for the items in shop, but it removes the og:image setting on all the other pages in the site.

    It also overwrites the entire site to products… pages, posts, everything.

    Can you assist.

    • This topic was modified 4 years, 12 months ago by cmolyn.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter cmolyn

    (@cmolyn)

    Some resolutions for this:
    Line 991
    public function overwriteWpSeoType()
    should be
    public function overwriteWpSeoType( $type )

    line 994

    //Check for plugin usage
    global $post;
    if ( has_shortcode( $post->post_content, 'spreadplugin' ) ) {

    line 999
    return 'product';
    should be

     return 'product';
    //return $type;
     } else { return $type; }

    link 1005
    public function seoImageUrlHandler()
    should be
    public function seoImageUrlHandler($img)

    line 1039
    return false;
    should be
    return $img

    • This reply was modified 4 years, 11 months ago by cmolyn.
    Plugin Author Thimo Grauerholz

    (@pr3ss-play)

    Sorry for replying that late, but these days are a little crazy.
    I added your changes to the next release, which should be available right now.

    Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Yoast Og:image conflict’ is closed to new replies.