Site logo

Archived topic

Breadcrumbs for child pages of a page using hooks

1 reply · Started by Len on February 28, 2021

Viewing posts 1–2 of 2

For years I have used the page-list plugin to display a list of projects. Projects are all child pages of the main page. This works well. However, I want a breadcrumb on each child page, back to the parent page.
I normally use the breadcrumb navxt plugin using a widget.
I have looked at using a generatepress hook, but:
How do I restrict the hook to child pages of a specific page, there is no option for that.
The other alternative is to add a widget area above the page content, and activate just for these child pages. Again, I cannot find a way ot do this. I have read support posts that suggest using the widget-shortcode plugin, but not happy wiht this. If there a way using the Elements functions to create a new widget area?
I can include php in the hook instead of a shortcode.
I ma using the GP Pro stuff.
Thanks, LenW

Hi Len,

How do I restrict the hook to child pages of a specific page

I'm not sure I fully understand the above sentence, in hook's display rule, you'll be able to choose any specific pages even it's a child page.

If I understood incorrectly, could you specify the circumstances a bit more? It's better to link us to the page in question using the private info filed.

Let me know :)

This archived topic is closed to new replies.