• Resolved letterafterz

    (@letterafterz)


    Hey guys,

    I’m using Delicious Brains’ WP Offload Media to offload all media files to an Amazon S3 CDN.

    One issue we ran up against is that the Facebook / open graph image paths aren’t updated when the media is offloaded, they still show references to the local path.

    I contacted their support and they advised us to contact you guys and to refer you to their docs here: https://deliciousbrains.com/wp-offload-media/doc/compatibility-with-other-plugins/

    Any advice on a fix for this would be great.

    Thanks in advance

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @letterafterz,

    Thank you for reaching out.

    We understand that the OpenGraph URL’s are not updating in the Yoast output when you store them in non-default locations such as offloading. However, this sounds like the plugin you use no longer is compatible with the way Yoast SEO 14.0 stores its data into the database.

    However, we think the plugin or your developer needs to integrate with our new way of storing this data. We have more developer documentation on this on developer.yoast.com.

    Thread Starter letterafterz

    (@letterafterz)

    Thanks Jeroen,

    The issue is due to the Yoast storing the URL as a string instead of a reference to an object. I’ve passed on your feedback to the plugin developer.

    In the meantime, if anyone else is facing this issue, there’s a filter that can convert output URLs which fixes the issue with output:

    // WP MEDIA OFFLOAD + Yoast SEO: fix for image paths to CDN
    add_filter( 'wpseo_opengraph_image', 'change_opengraph_image_url' );
    
    function change_opengraph_image_url( $url ) {
        return $url = apply_filters( 'as3cf_filter_post_local_to_provider', $url );
    }
    Plugin Support Michael Ti?a

    (@mikes41720)

    Hi @letterafterz

    Could you confirm if the filter above works with the latest version of Yoast SEO for WordPress v14.3?

    We’d like to clarify as the wpseo_opengraph filter has already been deprecated since v14.0 — https://developer.yoast.com/customization/yoast-seo/api-filter-actions-deprecations

    Plugin Support devnihil

    (@devnihil)

    We are going ahead and marking this issue as resolved due to inactivity. If you require any further assistance please create a new issue.

    Thread Starter letterafterz

    (@letterafterz)

    Hi Michael, sorry for the late reply here, missed this one in my inbox sorry.

    Can confirm this filter is currently working with the latest version of Yoast SEO.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘WP Offload Media compatibility’ is closed to new replies.