• Ok.. so I know how to list pages, but I am wanting to list the subpages of a parent within its parents page.

    So I have a Page about ART

    but within the page I wrote

    “Here is a list of my arts: “

    And after that I want to list my subpages… but whenever I put any php’s within the page coding, it disappears 🙁

    any suggestions?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Try to search for a plugin that lets you run PHP in posts/Pages. By default you can NOT run php in the content.
    keywords for search: execphp, phpexec, runphp)

    p.s. A more elegant solution is to use different Page templates and use your code there…

    Hi Moshu or anyone else reading this

    Having read this post I thought I would do as suggested and create page templates. However, I’m getting to the point of having to create several page templates just to show one set of sub pages.

    Take a look at this site:
    WEADA

    If you click on Members – that is one template to display the member area. If you now click on Cornwall, that is the second template to display the Cornwall members and if you now click on one of the members that is a third template to display Cornwall members even if they are in a sub-page.

    Do you see the problem please? I am using code to display sub-pages in Cornwall but if I use that code when clicking on a member it doesn’t display anything because you are in a sub page. I would also like to display the Members county pages in this list as well but you can’t because of the above code.

    Is there some elegant solution please?

    Thanks

    Rich

    Many thanks Moshu it worked a treat except for one small thing – second level menus. Take a look once again at:
    WEADA
    Take the members – Cornwall – Uzella route. Notice how when you click on Uzella the rest of the links disappear. I have tried playing with the code and not getting anywhere.

    Any ideas please?

    Rich

    It has been a while I played with that code…
    Yes, initially, it was done to display always ONLY the sibling Pages and not the parents.

    Just an idea… because I don’t know when I’ll have the time to look at it:
    http://wordpress.org/extend/plugins/wp-dtree-30/
    see if this plugin is doing something that you want.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Putting a List of Sub Pages, WITHIN its parent page’ is closed to new replies.