Custom ShortCode in posttitle not displaying in browser tab

#20980
  • Resolved Adarsh Soni
    Rank Math free

    I have two shortcode to get current count [cc] and current year [cy] both displays in browser tab when i uninstall the rank math but as soon as i install rank math it shows only shortcode tag without parsing the actual content in shortcode please have a look into attached screenshot

    I have also used filter in my theme functions.php as shown in your filter and hooks section but nothing seems to work
    /**
    * Filter to change the page title.
    *
    * @param string $title
    */
    add_filter( ‘rank_math/frontend/title’, function( $title ) {
    return $title;
    });

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

    Please reply me ASAP with solution

    • This topic was modified 4 years, 11 months ago by Adarsh Soni.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,

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

    Thank you.

    Hello,

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

    Thank you.

    Hello,

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

    Could you please modify the code on your theme to the following and let us know if the problem is still experienced:

    /**
     * Filter to change the page title.
     * 
     * @param string $title
     */
    add_filter( 'rank_math/frontend/title', function( $title ) {
    	return do_shortcode($title);
    });

    If the issue persists, please share some temporary logins to your site so that we can chase this down further.

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

The ticket ‘Custom ShortCode in posttitle not displaying in browser tab’ is closed to new replies.