• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2662

Original Genesis Tutorials & 5000+ Guaranteed Code

Snippets

  • Support
  • Newsletter
  • Videos
  • Log in

Premium Member? - Request custom code

Show Child Pages on Parent Page

These 5 code snippets provide 5 different ways to display a list of all child pages on their respective parent pages.

The list of child pages is displayed before the sidebar widget area ( or any hook you choose ) and only displays on the parent page.

Here’s an example:

sub-pages

The list of child pages is only displayed on the parent page and not on any child pages.

This tutorial also includes code which generates a shortcode and template tag enabling you to display your list of sub pages in the editor, a text widget or using any WordPress or theme specific hook.

And here’s the code for logged in members:

Register for full access

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

PHP Code

template_include

get_body_class

if else

array

class_exists

foreach

sprintf

add_action

printf

variable

Advertise · WPEngine · Genesis · Log in

  • How Premium Membership Works
  • Sign Up
  • Support
  • Subscription Details/Invoice
  • Tagged Tutorials
  • Access-Download Problems