Site logo

[Support request] Loop issue, documentation wrong ?

Home Forums Support [Support request] Loop issue, documentation wrong ?

Home Forums Support Loop issue, documentation wrong ?

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #2479600
    Rolf

    Hello,

    in the documentation https://docs.generateblocks.com/article/query-loop-overview/#query-parameters there is a possibility to add some parameters. I need to add a filter based on a category, it i’m not able. Some hint for me how i can manage this ?

    Screenshot from my Generatepress:
    https://imghostr.com/YkEg35mj

    #2479749
    David
    Staff
    Customer Support

    Hi there,

    the block you’re using is the core Query Loop Block, you need to use the GenerateBlocks Query Loop.

    #2479777
    Rolf

    Hey,

    thanks David! i hope you have a happy new year. Correct now i have much more selection points. Now the Bonus Question. How i get the query dynamic based on the opened category page ?

    #2479779
    David
    Staff
    Customer Support

    Happy New Year!

    There is an option in the settings called: Inherit Query from Template
    If you use that and you add the query loop in a Block Element – Loop template then it will use the current query terms

    #2479782
    Rolf

    Hey,

    that i have try: https://imghostr.com/eSNMaHPF but the output are empty. Honestly the Database Schemata is a little bit complex..

    #2479785
    Rolf

    PS: https://imghostr.com/yS66AbqZ

    When i open it with the editor i see entrys but when i open it on the page not.

    #2479788
    David
    Staff
    Customer Support

    You need to add some blocks inside the Post Template container and set their dynamic data options.
    It make be easier if when you add the Query Loop block, choose one of the pre-defined settings OR you can copy and paste a Query Loop design from here:

    https://generateblocks.com/library/?pattern-category=query-loop

    #2479794
    Rolf

    Hey,

    my issue is that i have a master post type and some child post type. At the moment i can only select one of the child post type what has not really a category. Only the master type has a category. Now, how can i query the child based on the master post type ?

    #2479860
    David
    Staff
    Customer Support

    Ah ok, so the CPT has 'hierarchical' => true, ?

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