Custom fields value as shortcode not working in meta

#87605
  • Resolved Puneet
    Rank Math free

    Hi,
    I use custom fields value as shortcode in content at starting of content.

    Now in automatically generated meta description by rank Math it’s didn’t fetch short code value witch is created in custom fields.

    How to echo shortcode value?

Viewing 1 replies (of 1 total)
  • Hello,

    Thank you for contacting Rank Math today.

    You can add the following filter in your theme functions.php to allow shortcodes in meta data.

    
    /**
     * Allow shortcodes in the Meta Data.
     */
    add_filter( 'rank_math/paper/auto_generated_description/apply_shortcode', '__return_true' );
    

    Looking forward to helping you. 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 ‘Custom fields value as shortcode not working in meta’ is closed to new replies.