Site logo

Archived topic

How to get post title?

3 replies · Started by Raul on June 23, 2022

Viewing posts 1–4 of 4

Hi

I want to build a small FAQ inside the posts. For this I need the Post Title to put it in Headlines blocks, dynamically.

I will give an example for simplicity: example, the post is about the dog Charlie (the Post Title) and my FAQ list would be:
Headline a) What Charlie...?
Headline b) How Charlie...?
Headline c) When Charlie...?

Is any tag that I can use inside the headline block, like {{post_title}} or something similar?

Hi there,

there is no tag, and currently the GenerateBlocks 1.5 Dynamic data options won't allow you to mix static and dynamic content.

But you can create your own shortcode with a PHP Snippet - see here:

https://generatepress.com/forums/topic/entry-title-3/#post-2189564

then you can add that shortcode inside the headline block with your static text.

Thank you very much!

You're welcome

This archived topic is closed to new replies.