Forums

[closed] Does anybody out there know how to link pages with child pages? (7 posts)

  1. nails64
    Member
    Posted 3 years ago #

    Can't link my first subpages with their subpages. Anbyody know the code, or is there a way just to do it on the dashboard?

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Can you explain the problem in a bit more detail?

  3. nails64
    Member
    Posted 3 years ago #

    Thanks, I have navlinks on my home page. they go to secondary pages, like Attendance is a link on the home page, links to a list of churches. One of those churches is Warrenton Church, say, and it has a subpage with the attendance in different years on that page. It's a subpage to the Warrenton Church link. So the pages are set up in wordpress as parent-Attendance, child-Warrenton church, grandchild-the numbers page. How do I link Warrenton church to its subpage, How do I create links for secondary pages to tertiary pages?

    thanks, chuck

  4. esmi
    Theme Diva & Forum Moderator
    Posted 3 years ago #

    Admin/Pages/Edit.

    Pick one of the child pages. Under the Attributes Tab, ensure that the page is correctly nested under its parent. Do the same for all child page. Repeat for all grandchildren but this time ensure that they are correctly nested under the appropriate child page.

    Once this is complete, you can list all pages - complete with the hierarchy (their relationship to one another) - using wp_list_pages.

  5. nails64
    Member
    Posted 3 years ago #

    Thank you.

  6. MichaelH
    Volunteer
    Posted 3 years ago #

    The template tag, wp_list_pages(), will display a list of your Pages hierarchically.

    But it will not 'link' your Pages. But you can create a Page template that when a parent page is displayed, wp_list_pages can then display of list of child pages. An example is in the wp_list_pages article linked above.

    Please note I've deleted the duplicate topics you started!

  7. MichaelH
    Volunteer
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.