Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Sybre Waaijer

    (@cybr)

    Hello!

    These three filters should work, which will run shortcodes on the front end in the document title, Open Graph title, and Twitter title, respectively:

    add_filter( 'the_seo_framework_pre_get_document_title', 'apply_shortcodes' );
    add_filter( 'the_seo_framework_ogtitle_output', 'apply_shortcodes' );
    add_filter( 'the_seo_framework_twittertitle_output', 'apply_shortcodes' );
    

    Please be mindful that if your content doesn’t match the generated title, search engines may penalize your site (e.g., the title says “2023,” but the content says “2021,” and nothing has changed in 2 years, then the title is misleading).

    Thread Starter trungtuans

    (@trungtuans)

    Thank you for your quick response and additional information. The code works as expected. I just started using your plugin a few days ago. It’s so good and deserves 5 stars. ^^

    Plugin Author Sybre Waaijer

    (@cybr)

    Thank you so much for that! ??

    Feel free to open a new topic if there’s anything else you need help with. Have a great weekend!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to make custom shortcodes work with TSF’ is closed to new replies.