[Resolved] Dynamic content

Home Forums Support [Resolved] Dynamic content

Home Forums Support Dynamic content

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #2026769
    Dan

    I’m creating a category archive template from dynamic blocks.
    Similar to the Title which links to the single post, how can I add a link to the single post from some text?
    I would like to add: “Read more about this post” (and this line would be a link to the single post).

    Thanks
    Dan

    #2026967
    Leo
    Staff
    Customer Support

    Hi there,

    Have you tried adding a headline block:
    https://docs.generateblocks.com/article/headline-overview/

    Then use a dynamic link?
    https://docs.generatepress.com/article/dynamic-data/#single-post

    Let me know 🙂

    #2027020
    Dan

    yes, I’ve tried that, but it outputs the post’s name. I would like to have any text (in the case: “Read the blog post here”) link to the single post.
    When using the dynamic option, I can only set it to the post title, and I don’t want that.

    Dan

    #2027024
    Dan

    It works when selecting the “Button” block but not with the “heading” block.

    #2027352
    David
    Staff
    Customer Support

    Hi there,

    headlines require the text to be dynamic too. The most you can do is add some before text before the ‘post_title’.
    For now you would have to use a GB Button block, or if the text link is required as part of a block of text then you would need to create a shortcode for that purpose.

    #2027459
    Dan

    Thanks David.

    Dan

    #2028766
    David
    Staff
    Customer Support

    You’re welcome

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