Site logo

[Support request] Custom hooks

Home Forums Support [Support request] Custom hooks

Home Forums Support Custom hooks

Viewing 15 posts - 1 through 15 (of 18 total)
  • Author
    Posts
  • #2211388
    Richard

    Hi Guys
    On the site below, im trying to create another Header. The top Highlighted posts header includes only the posts using “highlighted posts” as a category. There should then be another header saying “from the blog” or something like that. The site so far has been built using elements to control individual layouts, but I can’t seem. to find a hook to place the second header after the highlighted posts. Any ideas?
    Thanks

    #2211435
    David
    Staff
    Customer Support

    Hi there,

    what if you use the same Hook for the second header ? You can either include it in the same hook after the shortcode. Or create a new one with the same hook and increase Priority to 11 or more.

    #2213873
    Richard

    Thanks David,
    So I’ve tried the same hook (before_main_content) with a priority of 40 but it then sits behind the highlighted posts? I think im missing something here.

    #2213917
    David
    Staff
    Customer Support

    Can i get temporary admin access so i can see what you have setup so far ?

    #2213918
    Richard

    Of course

    #2213930
    David
    Staff
    Customer Support

    Aah ok – so are you trying to split the post list in two ? So the layout would be:

    1. Highlighted Posts header
    2. List of Highlighted Posts
    3. “Other Post” headere
    4. Other posts

    #2213933
    Richard

    Spot on!

    #2213959
    David
    Staff
    Customer Support

    Yeah, it won’t do that …. you would either need to a. create a custom php template for that index that outputs 2 x loops or b. hook in after a specific Post in the loop which is tricky if the order isn’t known.

    OR if you don’t mind waiting a little while, you can use GenerateBlocks 1.5 to create your own multiple post lists on a static page:

    https://generateblocks.com/generateblocks-1-5-dynamic-data-query-loops-image-blocks/

    L

    #2213990
    Richard

    Thanks David. Will look at GB now. The site has moved to a new url its below

    #2214140
    David
    Staff
    Customer Support

    Be great to hear what you think about GB 1.5 🙂

    #2255157
    Richard

    Hi David,
    Still looking into this, how far away is 1.5? ive installed it but struggling with getting what i neeD?
    Thanks

    #2255187
    David
    Staff
    Customer Support

    Hi Richard,

    if all goes well then we aim to go live next week on Tuesday 21st June.
    Anything particular your struggling with ?

    #2255206
    Richard

    Is there any documentation on “create your own multiple post lists on a static page”?
    I have several elements designed but not sure how that will work with a static page?
    Thanks

    #2255576
    Ying
    Staff
    Customer Support

    With GB 1.5, you can use the new query loop block to add loops (in your case posts) to a static page.
    For more info: https://docs.generateblocks.com/article/query-loop-overview/

    #2259906
    Richard

    Thanks Ying! I’ve created the page in the private section. However, when I try and add a button to link to the catogories from the loop it doesn’t let me link it up to dynamic options like it does as if its an element?

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