• Resolved systemsrtk

    (@systemsrtk)


    Hi

    I am using the filter “wpseo_opengraph_image”.

    after upgrade the last Yoast version 23.4, this filter stop working.

    after debugging, i see that it working only, if i installed the premium version and activate “Social image” in “Social media appearance”

    The page I need help with: [log in to see the link]

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Support Maybellyne

    (@maybellyne)

    Hello @systemsrtk

    Thanks for using the Yoast SEO plugin. The wpseo_opengraph_image filter alters the Open Graph image for a single post in that if an?og:image?already exists for the page/post/archive, it is replaced by the new one returned by the filter. If there is no?og:image, nothing is done by the filter.

    This post has an og:image output:

    <meta property="og:image" content="https://www.prtfl.co.il/wp-content/uploads/2024/09/nuritgrossanu.jpg">

    Do you mean that’s not the image you expect? It’d be helpful if you provide more information on the filter not working.

    Thread Starter systemsrtk

    (@systemsrtk)

    Sorry, i was needed set image manually in the YOAST social tab in this post.

    I make a test environment for you, you can see the issue here:

    https://rotemt30.sg-host.com/tst-post/

    This is a fresh WordPress installation with Yoast and Twenty Twenty-Four theme, without any code customization.

    Simply i create a new post, and applied the filter on the functions.php

    then use

    Plugin Support Mushrit Shabnam

    (@611shabnam)

    Hi @systemsrtk

    I have tested the filter wpseo_opengraph_image and was able to alter the image by using code and with Yoast SEO 23.4 only.

    Yoast SEO allows you to add social image manually in every post from post editor > Yoast SEO metabox > Social tab’s social image field. Is there any issue you face when you try to add the image from Yoast SEO metabox > Social tab?

    If yes, please provide us with screenshots that highlight the issue you are experiencing. You can use any image-sharing service like https://pasteboard.co/, https://snag.gy/, https://imgur.com/, https://snipboard.io/, or even upload the screenshot to your own website. Once you upload it to an image-sharing service, please share the link to the image here.

    Thread Starter systemsrtk

    (@systemsrtk)

    My issue is with wpseo_opengraph_image filter only.

    Did you check with a fresh installations as i explained above?

    I debugged the issue, and see that this condition

    $this->context->open_graph_enabled

    in wp-content\plugins\wordpress-seo\src\presentations\indexable-presentation.php

    line 470

    this field exist only on your premium plugin

    thanks

    Plugin Support Maybellyne

    (@maybellyne)

    Thanks for letting us know. We’re actively using the bug tracking on our GitHub repository, so your best next step would be to create a new issue for our developers here.

    You will need an account to create a new issue. Please provide as much information about the issue, including the URL to this conversation. This guide will help you submit a complete report which may result in a faster resolution.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.