[Resolved] Query loop used in Elements?

Home Forums Support [Resolved] Query loop used in Elements?

Home Forums Support Query loop used in Elements?

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2356899
    Annamari

    Hi,

    is it possible to add the query loop to an element as a hook to be displayed at the end of every blog post?

    Thanks,
    Annamari

    #2356927
    Leo
    Staff
    Customer Support

    Hi there,

    A believe a block element hook is what you are looking for:
    https://docs.generatepress.com/article/block-element-hook/

    Let me know if this helps ๐Ÿ™‚

    #2356934
    Annamari

    Hi Leo,

    great, that’s the one!

    Is it possible to build a related posts section with this? I managed to embed the block at the end of the posts, but I got stuck with setting it up to pull posts from the same category and skip the actual post.

    Thanks,
    Annamari

    #2356940
    Leo
    Staff
    Customer Support

    The related posts feature would require the Pro version of GenerateBlocks:
    https://generateblocks.com/creating-related-posts-with-query-loop-block/

    #2356955
    Annamari

    Thanks!

    #2356985
    Leo
    Staff
    Customer Support

    No problem ๐Ÿ™‚

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