Linkedin sharing issue

#345245
  • Resolved Will Calver
    Rank Math free

    Hi there,

    We have the same issue we have stumbled upon on a few sites recently and I wondered if there was a fix?

    When we want to share an article onto social media platforms, generally on facebook or twitter the meta titles and descriptions are all populated based on the SEO title set and they are all fine. However, when shared to Linkedin the title is taken from the page name rather than the SEO title.

    An example of this is https://www.linkedin.com/post-inspector/inspect/https:%2F%2Fthegreenprogram.com%2Fprogram%2Fbelize%2F

    You’ll see the title is just “Belize” which is just the program name set in WordPress, but the SEO title is set to “TGP Belize: Sustainable Action for Coastal Communities & Ocean Conservation”. This SEO title is the one that SHOULD be used but is not. You can see this page here: https://thegreenprogram.com/program/belize/

    We’ve gone through everything and can only work out that it must be a RankMath issue.

    Could you please let me know what we could do?

    Thanks in advance!

Viewing 1 replies (of 1 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.

    I’ve checked the post inspector, and it seems that LinkedIn is not using the og:title meta tag on your site. You can check the page’s source code that Rank Math already outputs the metadata correctly.

    In this case, please note that LinkedIn prioritizes the oEmbed code instead of the OpenGraph meta tags, that’s why your OpenGraph is not being used when sharing:

    oembed

    For a workaround, you can add this in the last line of your active theme’s functions.php file, and this will remove links on your site:

    remove_action( 'wp_head', 'wp_oembed_add_discovery_links', 10 );
    

    Please do take a complete backup of your website before applying any filter on your site.

    Once done, clear your website’s cache and check again using the inspector tool.

    I hope that helps.

    Thank you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 1 replies (of 1 total)

The ticket ‘Linkedin sharing issue’ is closed to new replies.