How would I display a list of my child pages using featured images on a its parent page as well as its other siblings child page?
For example, if my parent page is called ‘Music’, I’ll have my main content with child pages thumbnails at the bottom.
I’d like to have thumbnails with permalinks to other child pages from within the parent Music page displayed across all of the child music pages.
Is this possible?
Thanks
Use
get_ancestors
to get the page parent, then get the children of that parent.This is the best solution worked so far for me, which is combination of multiple solutions i found online,
With this code you can display Sub Page Featured Image and Title with anchor link.
Also this work for Sub and Child page too.