• Hi Guys
    I have a question with regard to using WP as a CMS.
    I have a community site: https://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 https://www.swmug.co.uk. It has not started yet – sometime today!

Viewing 9 replies - 1 through 9 (of 9 total)
  • Yes, WP has excerpt feature, and yes, it has sub pages also.

    Thread Starter Richard Brown

    (@cregy)

    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 https://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 );

    Thread Starter Richard Brown

    (@cregy)

    Hi Alphaoide

    Would I place this in the Business Directory page?

    Thanks

    Rich

    Thread Starter Richard Brown

    (@cregy)

    Hi

    I am trying to apply the php code suggest by Alphaoide. Does anybody have any suggestions?

    Thanks

    Rich

    Thread Starter Richard Brown

    (@cregy)

    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 );

    Thread Starter Richard Brown

    (@cregy)

    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

    (@cregy)

    Hi All

    I have solved it! I have used the code from https://www.adsworth.info/wp-pagesnav to style the pages. If you take a look at https://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.