• Resolved Passive Book

    (@passivebook)


    I have several short codes that I use as part of the title. For example I have [auto-list-number display=”total”] that dynamically counts the items in the list and displays it.

    How do I ensure the short codes are executed and displayed in my HTML sitemap?

    Is there a PHP Code I can enable. I tried this but it doesnt work:

    add_filter('rank_math/sitemap/html_sitemap/title', function ($title) {
        return do_shortcode( $title );}
    );

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Plugin Support Rank Math Support

    (@rankmathteam)

    Hello@passivebook,

    Thank you for contacting Rank Math and bringing your concern to our attention.

    Sorry to disappoint, but there’s no way to parse shortcodes in the HTML sitemap.

    However, you may try using the SEO Titles option from Item Titles in the HTML sitemap settings to see if that works for you.

    Let us know how it goes. Looking forward to helping you.

Viewing 1 replies (of 1 total)
  • The topic ‘Enable Shortcode in HTML Sitemap’ is closed to new replies.