Site logo

[Resolved] Displaying Child Page Names in Grid Blocks?

Home Forums Support [Resolved] Displaying Child Page Names in Grid Blocks?

Home Forums Support Displaying Child Page Names in Grid Blocks?

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #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!

    #1859455
    Leo
    Staff
    Customer Support

    Hi 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-wordpress

    #1859463
    StoicCorn

    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?

    #1859465
    Leo
    Staff
    Customer Support

    Feature 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 🙂

    #1859470
    StoicCorn

    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?

    #1859472
    Leo
    Staff
    Customer Support

    We 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.

    #1859473
    StoicCorn

    Sounds good, thanks.

    Marked as Resolved!

    #1859476
    Leo
    Staff
    Customer Support

    No problem 🙂

    Thanks for your understanding!

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