• katart17

    (@katart17)


    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)
  • Thread Starter katart17

    (@katart17)

    I recently modified it to work when a Post has no Child pages.

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

    Can this be streamlined?

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