Site logo

Archived topic

dynamic content in sections

5 replies · Started by Peter on June 17, 2018

Viewing posts 1–6 of 6

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

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.

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.

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.

Hi Tom,

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

Thank you for your time.

Cheers!

Peter

You're welcome :)

Let me know if you have any other questions.

This archived topic is closed to new replies.