Forums
Home / Themes and Templates / Not displaying subpages.
(@bluemonkeyrage)
14 years, 3 months ago
Hi. I’m new to WordPress themeing. Templating. It’s hard because I don’t know php etc.
So can someone please perhaps give me a hand with my navigation? I want it to NOT display the subpages AND not display a title. So far it doesn’t display a title.
I have;
<div id="navmenu"> <ul> <?php wp_list_pages('title_li='); ?> </ul> </div>
Can someone please correct this for me?
(@michaelh)
The template tag, wp_list_pages(), offers the depth=1 argument that should help you.
<?php wp_list_pages('depth=1&title_li='); ?>
YAY thanks a lot. 😀 I just couldn’t figure out how to put them together. I suck at php