Site logo

Archived topic

Custom hooks

17 replies · Started by Richard on May 6, 2022

Viewing posts 1–15 of 18

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

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.

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.

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

Of course

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

Spot on!

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

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

Be great to hear what you think about GB 1.5 :)

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

Hi Richard,

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

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

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?

This archived topic is closed to new replies.