Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How do I show a pages sub-pages in WordPress

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #25315
    seedorf
    Member

    As stated in the post’s topic, i was wondering if someone knew how to list sub-pages of a page within the same page. For example, I would like a page named products to list a bunch of products by a certain company, and when more products are added as a sub-page of the products page, the list gets updated to reflect the change. I’m there’s a single wp tag that would do this, so please forgive my stupidity for not knowing this.

    Many thanks in advance for your help.

    #59952
    apostrophe
    Participant

    The best place to start is always the codex http://codex.wordpress.org/Template_Tags/wp_list_pages#List_subpages_even_if_on_a_subpage

    This is what you are looking for

    Code:
    ID.’&echo=0′);
    if ($children) { ?>

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.