[Support request] dynamic content in sections

Home Forums Support [Support request] dynamic content in sections

Home Forums Support dynamic content in sections

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #601992
    Peter

    Hi GP,
    Is it possible to load dynamic content into Sections in GP?
    I am thinking of Featured image, Post title and post content?
    Thanks.
    cheers
    Peter

    #602127
    Leo
    Staff
    Customer Support

    Hi there,

    Not quite sure what you mean?

    Sections add-on is meant to be a simple page builder so all the default content is removed.

    #602411
    Peter

    Hi Leo,
    Thank you for your reply. You’re right, I should have explained it in more detail.

    What I mean is that like you in the Page Headers designer can add template tags, ({{post_title}}, etc.), maybe something similiar could be useful in the Sections designer?

    Even though all default content is removed when you use Sections it would be nice to be able to load the Featured image or Post Meta data by using a code like the Template Tags in the Page Header-designer.

    Thank you for your time.
    cheers
    P.

    #602851
    Tom
    Lead Developer
    Lead Developer

    There aren’t any built in template tags, but you can add shortcodes.

    For example:

    add_shortcode( 'the_title', function() {
        return get_the_title();
    } );

    Then you could use [the_title] in your Section.

    #603213
    Peter

    Hi Tom,

    Great! I’ll see what I can do with that.

    Thank you for your time.

    Cheers!

    Peter

    #603563
    Tom
    Lead Developer
    Lead Developer

    You’re welcome 🙂

    Let me know if you have any other questions.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.