Yes, WP has excerpt feature, and yes, it has sub pages also.
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/ 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!
You could incorporate something like the following.
<?php wp_list_pages( 'child_of=' . $post->ID );
Hi Alphaoide
Would I place this in the Business Directory page?
Thanks
Rich
Hi
I am trying to apply the php code suggest by Alphaoide. Does anybody have any suggestions?
Thanks
Rich
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
Try this.
<?php $parentId = get_query_var( 'page_id' ); ?>
<?php wp_list_pages( 'child_of=' . $parentId );
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
Hi All
I have solved it! I have used the code from http://www.adsworth.info/wp-pagesnav to style the pages. If you take a look at 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