Support » Fixing WordPress » Add Shortcode to The Title

  • Resolved vahost

    (@vahost)


    I am wondering if there is a way to add a shortcode to the page or post title?

    I know that:
    add_filter( 'the_title', myShortcode);

    in my theme’s functions will replace the title, but I don’t want to replace it. I simply want to add a shortcode to it, something like this:

    This Is My Page Title [shortcode]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Add Shortcode to The Title’ is closed to new replies.