WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Add Shortcode to The Title (2 posts)

  1. vahost
    Member
    Posted 2 years ago #

    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]

  2. vahost
    Member
    Posted 2 years ago #

    Never mind. Figured it out.

Topic Closed

This topic has been closed to new replies.

About this Topic