[Resolved] How to get post title?

Home Forums Support [Resolved] How to get post title?

Home Forums Support How to get post title?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #2262516
    Raul

    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?

    #2262548
    David
    Staff
    Customer Support

    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.

    #2262942
    Raul

    Thank you very much!

    #2263079
    David
    Staff
    Customer Support

    You’re welcome

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