Support » Themes and Templates » Display single page or child pages from one template file

  • I was looking to use a single-posttype.php to display a single page or a list of Child pages. After a couple hours of testing I came up with the following code:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Is there a more efficient way of writing this code?

    Thanks

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Display single page or child pages from one template file’ is closed to new replies.