Suckerfish and displaying post titles
-
Hi All
I am using a suckerfish menu at:
St Winnow CE SchoolWhat 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="https://abistudios.co.uk/about/">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'); ?> <ul> <?php while (have_posts()) : the_post(); ?> <li><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></li> <?php endwhile;?> </ul> </li> </ul> </li>
Thanks
Rich
- The topic ‘Suckerfish and displaying post titles’ is closed to new replies.