Title: CMS &#8211; Ordering Pages
Last modified: August 18, 2016

---

# CMS – Ordering Pages

 *  Resolved [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/)
 * Hi Guys
    I have a question with regard to using WP as a CMS. I have a community
   site: [http://www.lostwithiel.org.uk/](http://www.lostwithiel.org.uk/). If you
   have a look it is extremely cluttered and there is to much information! It is
   currently a Xoops site and not many people are adding information – the interface
   is to confusing! So, I want to redesign the site using WP. The front page will
   be the news and events page (WP and Extcal). For the information pages I will
   be using WP. However, what I would like to do is have a small three line excerpt
   with a photo alongside of each bit of information available with a link to the
   full article. Each category on the above site would be a different page followed
   by sub pages. I’ll try to draw what I mean: Town Information Chemist Doctor Bank
 * Tourist Information
    Places to visit Places to stay
 * Is it possible to use WP in this way?
 * Thanks
 * Rich
 * P.S. I will be building the site at [http://www.swmug.co.uk](http://www.swmug.co.uk).
   It has not started yet – sometime today!

Viewing 9 replies - 1 through 9 (of 9 total)

 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245188)
 * Yes, WP has excerpt feature, and yes, it has sub pages also.
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245290)
 * Hi
 * Ok I have now started to build the site and hopefully I’ll ask the question more
   constructively! Thanks for the last answer but it wasn’t what I was asking. Sorry–
   I posed the wrong question.
 * If you take a look at [http://www.swmug.co.uk/](http://www.swmug.co.uk/) you 
   will see that I have a large list of pages. This list will continue growing! 
   What I would like to do is to put a link on the side to the main pages. e.g. 
   Business Directory. Then when you click on that page you get taken to the Business
   Directory page with the intro and then a complete list of all pages associated
   with that page. Is this possible?
 * Thanks
 * Rich
 * P.S. More questions to follow but I’ll solve things issue by issue!
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245297)
 * You could incorporate something like the following.
    `<?php wp_list_pages( 'child_of
   =' . $post->ID );`
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245304)
 * Hi Alphaoide
 * Would I place this in the Business Directory page?
 * Thanks
 * Rich
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245319)
 * Hi
 * I am trying to apply the php code suggest by Alphaoide. Does anybody have any
   suggestions?
 * Thanks
 * Rich
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245502)
 * Hi
 * I have been doing some investigation! And I think I have a solution but I would
   like some help in implementing it. Thanks.
 * Step 1:
    Create a template for each main page I use. i.e. Business Directory.
   Have this page as a link from the main page.
 * Step 2:
    On each template page add this line of code: <?php wp_list_pages( ‘child_of
   =’ . $post->ID ); But how do I identify the ID of each page? Please could someone
   tell me what I type.
 * What do people think? Will it work.
 * Thanks for all the help.
 * Rich
 *  [Joshua Sigar](https://wordpress.org/support/users/alphaoide/)
 * (@alphaoide)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245503)
 * Try this.
    `<?php $parentId = get_query_var( 'page_id' ); ?> <?php wp_list_pages('
   child_of=' . $parentId );
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245511)
 * Hi Alphaoide
 * I think I am being thick because I can’t work out where to put the code to get
   it to work. Sorry and thanks for all the help.
 * I applied the code to the navigation after making a page.php and got this:
 * Warning: Invalid argument supplied for foreach() in /home/httpd/vhosts/swmug.
   co.uk/httpdocs/wp-includes/template-functions-post.php on line 378
    # Pages
 * #
 * Rich
 *  Thread Starter [Richard Brown](https://wordpress.org/support/users/cregy/)
 * (@cregy)
 * [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245526)
 * Hi All
 * I have solved it! I have used the code from [http://www.adsworth.info/wp-pagesnav](http://www.adsworth.info/wp-pagesnav)
   to style the pages. If you take a look at [http://www.swmug.co.uk](http://www.swmug.co.uk)
   you will see across the top various links. If you click on Business Directory(
   a parent page), you will see at the bottom of that page a list of child pages.
 * I hope this is useful to someone in the future. Thanks for all the help Alphaoide.
 * Rich

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘CMS – Ordering Pages’ is closed to new replies.

## Tags

 * [excerpts](https://wordpress.org/support/topic-tag/excerpts/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 9 replies
 * 2 participants
 * Last reply from: [Richard Brown](https://wordpress.org/support/users/cregy/)
 * Last activity: [20 years, 9 months ago](https://wordpress.org/support/topic/cms-ordering-pages/#post-245526)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
