Support » Themes and Templates » Suckerfish and displaying post titles

  • Resolved Cregy


    Hi All

    I am using a suckerfish menu at:
    St Winnow CE School

    What I have done is to create several main pages which have been hard coded into the top level navigation. The school can then add sub pages to these main pages as they wish.

    On the information page I want to include a section called news. This will use categories and will be broken down into sub cats Pre-school news, infant news, etc. However, when I add the code below to the suckerfish, the content shows only the posts title news. If I click on say the home page link, the content stays the same. The news post. If I click on another page, it still shows the same content.

    I have removed the code from the site so it won’t display as listed above. I am hoping that someone can spot the flaw in the code.

    <li><a href="">About</a>
    		<ul class="pages">
      <?php wp_list_pages("title_li=&child_of=2"); ?>
      <li><a href="#">News</a>
     <?php query_posts('cat=3&showposts=5'); ?>
      <?php while (have_posts()) : the_post(); ?>
      <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li>
      <?php endwhile;?>



Viewing 1 replies (of 1 total)
  • I was being stupid and realised I was complicating the answer.

    Take a look at the site now. Under information we now have news etc in place.


Viewing 1 replies (of 1 total)
  • The topic ‘Suckerfish and displaying post titles’ is closed to new replies.