0

I have a "News" page with child pages and I want to display those child pages in "News" page only, like this

How can I achieve this?

3

I believe you're looking for this: get_page_children()

That function will return an array of your sub-pages, which you can iterate through to display your list.

  • can you give me another snippet? – user3818821 Oct 12 '15 at 9:08
  • 5
    I don't work for free - there's enough snippets on the reference page for you to get going with some experiments. – Benjamin Love Oct 12 '15 at 9:23
  • 2
    @user3818821 it is expected that you have at least the minimum knowledge to implement what have been given in an answer. The given link should help you reach your goal – Pieter Goosen Oct 12 '15 at 9:53
  • @PieterGoosen and BejaminLove please see updated question – user3818821 Oct 13 '15 at 5:33
  • @user3818821 As far as I can see, the issue is resolved ;-) – Pieter Goosen Oct 13 '15 at 5:38

Not the answer you're looking for? Browse other questions tagged or ask your own question.