WordPress.org

Forums

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

  1. jennimurr
    Member
    Posted 1 year 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 1 year ago #

    Hello,

    try to use the following code instead:

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Shortcodes Ultimate
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic