RESOLVED: Crazy WordPress question
-
I have tried to figure this out at other places, but nobody has a clue so I thought I would try here. I usually find answers here, you guys know your stuff. Anyway, here is the issue:
I am trying to exclude a page in the nav menu on my site. I am using the Mensa Theme, and the
Method is not working. Any ideas?
Here is some code from:
header.php
<!-- BEGIN header --> <div id="header"> <div class="search"> <form action="/"> <input type="text" name="s" id="s" value="" /> <button type="submit">S</button> </form> </div> <div class="logo"> <h1><a href=""></a></h1> </div> <ul> <li><a href="">Home</a></li> </ul> <div class="break"></div> </div> <!-- END header -->
functions.php
# Displays a list of pages function dp_list_pages() { global $wpdb; $querystr = "SELECT $wpdb->posts.ID, $wpdb->posts.post_title FROM $wpdb->posts WHERE $wpdb->posts.post_status = 'publish' AND $wpdb->posts.post_type = 'page' ORDER BY $wpdb->posts.ID ASC"; $pageposts = $wpdb->get_results($querystr, OBJECT); if ($pageposts) { foreach ($pageposts as $post) { ?><li><a href="ID); ?>">post_title; ?></a></li><?php } } }
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘RESOLVED: Crazy WordPress question’ is closed to new replies.