Meta descriptions on social media posts are incorrect

#479287
  • Resolved LinuxTeck
    Rank Math free

    Hello Support Team,

    Recently, I have noticed that social shares of my articles have incorrect meta descriptions. Although I checked all the settings and links to fix the issue, it didn’t work. I even checked everything in the “edit snippet” and everything appears correct there, but when I share the link on Facebook/Twitter it shows the wrong description.

    I have attached both the snippet social media preview and the actual post after sharing.

    Snippet Preview : https://prnt.sc/8QaFNqY3bWPx

    FB preview : https://prnt.sc/KJnqXQZYAb5t

    Rankmath Excerpt settings: https://prnt.sc/GINcMXcoeCpJ

    I would appreciate it if you could guide me as to where the error lies.

    Thank you.

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

    Thanks for contacting us, and sorry for any inconvenience that might have been caused due to that.

    We might need to take a closer look at the settings. 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/

    Looking forward to helping you.

    Thank you.

    Hello,

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

    Thank you.

    Hello Md. Sakib Khandaker,

    Any updates?

    Thank you.

    Hello,

    We apologize for the delay in response.

    It seems the %excerpt% variable is picking up the incorrect information from your content. This may have to do with the way you formatted it.

    We have shared this ticket with our developers to further investigate this issue. We should get back to you shortly with advice or a solution.

    We appreciate your time and patience in the meantime.

    Thank you.

    Hello,

    We could reproduce this issue on our setup and have logged it. Please allow us some time to test and release a fix. For now, to fix the issue on your site I have added following code on line 542-543 in includes/replace-variables/class-post-variables.php file:

    
    $primary_keyword = explode( ',', $keywords );
    $primary_keyword = trim( $primary_keyword[0] );
    $regex           = '/<p>(.*' . str_replace( [ ',', ' ', '/' ], [ '|', '.', '\/' ], $primary_keyword ) . '.*)<\/p>/iu';
    

    This has fixed the issue. Can you please confirm?

    I hope that helps.

    Hi Pratik,

    I appreciate your quick response and solving the issue, however, I have noticed that the issue has only been resolved on Facebook, but is still present on Twitter and Quora. I have attached a screenshot below for your reference and would appreciate it if you could update the fixes on it as well. Thank you.

    Twitter Output:

    https://prnt.sc/YGMDnwCyqbPp

    Quora Output:

    https://prnt.sc/vIFdu4zag_g7

    Thank you.

    Hello,

    After login into your site, in the page source, I see the correct description is added. In incognito mode, it shows an old description. It looks like the server cache is enabled on your site. Please clear the cache and test again.

    I hope that helps.

    Hello,

    Thank you for your patience.

    Please update Rank Math & all other plugins, themes and WordPress to the latest version.

    The issue should be fixed.

    If not, please feel free to open a support topic or reply to this message and we will be more than happy to assist.

    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 8 replies - 1 through 8 (of 8 total)

The ticket ‘Meta descriptions on social media posts are incorrect’ is closed to new replies.