WordPress.org

Ready to get started?Download WordPress

Forums

Shortcodes Ultimate
How to populate page title with shortcode in page builder template (2 posts)

  1. jennimurr
    Member
    Posted 6 months ago #

    Hello - I'm using this plugin with a page builder theme.

    Is there a way to add ?php the_title(); ? code to the [su_header] shortcode so it auto populates that page's title?

    ie: [su_header]?php the_title(); ?[/su_header] (with <> around the php)

    I've tried it like this and with [raw] code, and no luck. It doesn't display anything.

    I am working on a beta site so I do not have a URL for you to look at.

    Thank you

    https://wordpress.org/plugins/shortcodes-ultimate/

  2. Vladimir Anokhin
    Member
    Plugin Author

    Posted 6 months ago #

    Hello,

    try to use the following code instead:

    [su_heading] [su_post field="post_title"] [/su_heading]

Reply

You must log in to post.

About this Plugin

About this Topic