- This topic has 7 replies, 2 voices, and was last updated 4 years, 8 months ago by
Leo.
-
AuthorPosts
-
July 17, 2021 at 4:42 pm #1859448
StoicCorn
Hello,
I recently started using GeneratePress and GenerateBlocks and despite spending several hours and lots of searching, I’m still at a loss for how to get an element to work the way I want.
I have a top level page and I’d like it to have an element to display the name of each child page in a grid of blocks.
How do I get the Dynamic Content to pull the names of child pages?
Everything I’ve seen points me to PHP to list it all out.
Any help would be greatly appreciated!
July 17, 2021 at 4:58 pm #1859455Leo
StaffCustomer SupportHi there,
That’s not something built-in in the dynamic content feature.
A custom PHP solution is required. Perhaps something like this?
https://wordpress.stackexchange.com/questions/152587/how-to-display-list-of-child-pages-of-parent-page-in-wordpressJuly 17, 2021 at 5:28 pm #1859463StoicCorn
Hi, thank you for the reply and confirming I’m not able to do it. The link you provided seems to display it in a list which wouldn’t work for this use case.
I don’t have that many pages at the moment so I’ll probably just make each block manually.
In the meantime, is there a place where I can submit a feature request?
July 17, 2021 at 5:34 pm #1859465Leo
StaffCustomer SupportFeature requests can be submitted here.
However, I can only recall a couple of other requests on this so I don’t believe it’s worth it for us to add it as an option though.
The dynamic content options in block elements you see are just using a lot of WordPress default variables and options (like displaying titles, content etc). This one will require a separate custom function.
We try really hard to only add options that are useful for the majority of our users.
In this case, I would say building the desired outcome manually is the way to go.
Let me know if this makes sense 🙂
July 17, 2021 at 5:39 pm #1859470StoicCorn
It does, still figured I’d document the feature request though…
Also, what is best practice on this forum? Should I mark the topic as “Resolved” because it’s complete even if it wasn’t actually resolved?
July 17, 2021 at 5:42 pm #1859472Leo
StaffCustomer SupportWe will absolutely consider this if it keeps on coming up 🙂
I would say that this topic counts of resolved as the question has been answered.
July 17, 2021 at 5:45 pm #1859473StoicCorn
Sounds good, thanks.
Marked as Resolved!
July 17, 2021 at 5:53 pm #1859476Leo
StaffCustomer SupportNo problem 🙂
Thanks for your understanding!
-
AuthorPosts
- You must be logged in to reply to this topic.