I’m working on a writer’s site. The pages are structured like so:
All Books
Series
Series A
Book 1, Book 2, etc.
Series B
Book 1, Book 2, etc.
Stand-alone novels
Book 1, Book 2, etc.
Each book has its own page.
I can use wp_list_pages to generate lists of links at whatever level I want. What I need to do is use Walker classes to customize wp_list_pages like this, but so that only the lowest Book level uses the Featured Image (=book cover) for the link.
How do I do this? That is, how do I put in images only on the lowest level, which is not the same number of steps down from the top in different parts of the tree?
Check if page has children: