Archived topic
Please add hook sequence to Elements list
10 replies · Started by Scott on February 17, 2022
Hi, on the Elements page where all of the components are listed, if there's a hook its name will be displayed under the Type. Could you add a ", 000" for the hook priority/sequence number? Thanks. And feel free to point me at a feature request link if one exists.
Hi there,
I'm not exactly sure if I understand here.
Can you explain a bit more?
If you click on Appearance > Elements, you are shown the list of Elements that have been created. For Elements of Hook or Block type, it displays the hook name in small letters beneath the Type. What I'm saying is that it would be useful to append the hook sequence number to the end, so it would look like "hook-name-blah-blah, #0". That way we can see at a glance what order the elements will display in.
By hook sequence do you mean priority?
So this would only be useful when several elements are added to the same hook?
Yes. For example, I'm building a lengthy home page with quite a few "sections" (or maybe you call them "rows"). Some of those sections are reused on multiple pages of the site, so I've created them as Elements. Using the priority (or sequence, or order, whatever you want to call it), I can control the order that the sections are displayed in. If they aren't sorted somehow, I have no way of indicating what order the sections appear, so the hook priority is the perfect candidate, and displaying it right on the list screen saves an awful lot of clicks. Make sense?
As an aside, I'm new to GP/GB, so if there's a better way to achieve this, fire away.
Hmm ok I can see how this could be useful in this situation.
Not sure if it's useful for the majority of our users though - might need a better way to display it like an extra column for priority.
We'll consider it :)
Well, let me ask this a different way...rather than posing a technique, I'll just ask the question: I have many pages composed of stacked sections, and I'd like the sections to be reusable. Using GP/GB, what's the best way to achieve that goal and be able to control the order they appear?
Does it work if you add all the sections under one element?
Well, that wouldn't work for what I need. In any case, I discovered the WP core reusable block feature, and it's exactly what I need. Thanks for your help today!
Sounds good.
Just a quick note that we find the reuseable block feature buggy at times but hopefully it will work for your purpose :)