OG Image Buddyboss User Post & Group Post

#593673
  • Resolved Anonymous
    Rank Math free

    Hi. I just switched from Yoast SEO and I really like your plugin. Thank you!

    We have a buddyboss website and I need for your SEO plugin to share the image from the user post to facebook and not the default OG image when there is none to be found.

    Can I disable your SEO plugin only for the /news-feed and groups/ section of buddyboss? When I disable your plugin completely for the whole site it shares the user image correctly to Facebook.

    Or is there a better way to do this? Please advise. Thank you.

Viewing 7 replies - 1 through 7 (of 7 total)
  • Hello,

    Thank you for contacting Rank Math and bringing your concern to our attention. I’m sorry for any inconvenience this issue may have caused you.

    Could you please share the sample post types or the URLs from BuddyBoss so we can target them and disable Rank Math’s Opengraph image using a filter?

    Meanwhile, here’s a sample filter you can use and customize based on the information you initially shared:

    
    /**
     * Hook to remove og:tags
     */
    add_action( 'rank_math/head', function() {
    	$url = home_url($_SERVER['REQUEST_URI']);
    	if (strpos($url, 'news-feed') != false || strpos($url,'groups')) {
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	}
    });

    Let us know how this goes.

    Thank you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    The filter code we shared should also work for the dynamic pages since Rank Math is able to generate the metas there.

    Can you please clear your website cache and check again?

    If the issue persists, we might need to check this over your website dashboard. Please edit the first post on this ticket and include your WordPress & FTP logins in the designated Sensitive Data section.

    Please do take a complete backup of your website before sharing the information with us.
    Sensitive Data Section

    It is completely secure and only our support staff has access to that section. If you want, you can use the below plugin to generate a temporary login URL to your website and share that with us instead:

    https://wordpress.org/plugins/temporary-login-without-password/

    You can use the above plugin in conjunction with the WP Security Audit Log to monitor what changes our staff might make on your website (if any):

    https://wordpress.org/plugins/wp-security-audit-log/

    We really look forward to helping you.

    Anonymous
    Rank Math free

    Hello,

    I have updated the sensitive data as requested. Can you please check further?

    Thank you.

    Hello,

    I replace the filter shared before with the filter given below:

    /**
     * Hook to remove og:tags
     */
    add_action( 'rank_math/head', function() {
    	$url = home_url($_SERVER['REQUEST_URI']);
    	if (strpos($url, 'members') != false || strpos($url,'news-feed')) {
    	remove_all_actions( 'rank_math/opengraph/facebook' );
    	}
    });

    The OG tags of our plugin are no longer being added to the member pages.

    Please check and let us know if you need any other assistance.

    Anonymous
    Rank Math free

    Thank you RankMath – Amazing support!

    Hello,
    
    You’re welcome.

    We are super happy that this issue is already resolved. If you have any other questions in the future, know that we are here to help you.
    
    If you don’t mind me asking, could you please leave us a review (if you haven’t already) on https://wordpress.org/support/plugin/seo-by-rank-math/reviews/#new-post about your overall experience with Rank Math? We appreciate your time and patience.
    
    If you do have another question in the future, please feel free to create a new forum topic, and it will be our pleasure to assist you again.
    
    Thank you.

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

The ticket ‘OG Image Buddyboss User Post & Group Post’ is closed to new replies.