I am creating a new website which uses WordPress as CMS and I have run into a problem which I don't know how to solve.
The site is structured in a first level menu (SERVICES) which has several child-menus (SERVICE1, SERVICE2, SERVICE3, ..).
I have a slide menu in the header which shows first level menu and:
1. on hover on first level menu, child-menus should appear (that's done, it works)
2. on click on a child-menu, the relative page is opened (done and working too)
3. on click on a first level menu, I'd like to see a page in which there's a list (organized with CSS) of titles+excerpts of child-menu pages (I cannot figure out how to do that)
I have found that it's possible to add an excerpt of a blog post using something like:
<h4>Latest Post</h4> <?php query_posts("post_per_page=1"); the_post(); ?> <div class="sidebar-post"> <p class="date"><?php the_date(); ?></p> <h5>"><?php the_title(); ?></h5> <p><?php the_excerpt(); ?></p> </div> <?php wp_reset_query(); ?>
[Moderator Note: Please post code or markup snippets between backticks or use the code button.]
So I was wondering if it was possible to do this same operation with a page instead of a post.
I hope my question is clear (if not, please ask).