Unable to run short codes in meta descriptions

  • Even after adding “11. Filter to Allow Shortcodes in the Meta Data” I am still seeing short codes from my Divi powered site in meta descriptions. Any help fixing this?

    • This topic was modified 2 months, 1 week ago by  Matthew.
Viewing 9 replies - 1 through 9 (of 9 total)
  • Hello,

    Thank you for contacting Rank Math and sorry for any inconvenience that might have been caused due to that.

    I could not find any information on your site on Google(site:domain.com) to check the rest of your pages but it looks like your homepage contains a broken shortcode that is not executing.
    Could you please add the following code to your theme’s functions.php file to fix this:

    add_filter( 'rank_math/frontend/description', function( $description ) {
        return strip_shortcodes( $description );
    });

    Looking forward to helping you. Thank you.

    ​​​​​​​

    Hello,

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

    Thank you.

    Hello,

    Is it an option to enter manual descriptions to the affected posts?

    We might need to take a closer look at the settings. Please edit the first post on this ticket and include your WP logins in the designated Sensitive Data section.
    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:

    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):

    WP Security Audit Log

    We really look forward to helping you.

    Hello,

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

    Thank you.

    Hi Matthew,

    Thanks for the access.

    You only have an image module on the affected page and no text data.
    This means that you will need to click on the edit snippet and add a manual meta description.

    We are looking forward to helping you. Thank you.

    Hello,

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

    Thank you.

    Hi Matthew,

    Thanks for the follow up.

    I am glad that you found this information useful 🙂
    I will also pass on your suggestion to our dev team so that this feature can see its way into the plugin sometime soon.

    Thank you.

    Hello,

    Please add below filter code in your theme’s functions.php file to allow shortcodes in the Metadata:

    Rank Math SEO Filters and Hooks for Developers

    Hope that helps. Thank you.

    Hello,

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

    Thank you.

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

The ticket ‘Unable to run short codes in meta descriptions’ is closed to new replies.