Main navigation isn’t showing all pages
-
I set up a custom main navigation and it’s working fine, but for some reason it won’t show more than 5 page tabs. If I unpublish page 1, 2, 3, 4, or 5, page 6 shows up. I can only get 5 pages visible at a time, and I can’t understand why =/
Here’s my code
foreach ($postslist as $post) : setup_postdata($post); $current_id = $post->ID; ?> <li> <a href='<?php echo get_permalink($current_id) . "' "; if ($thePostID == $current_id) { echo " class='selected'"; } ?> > <?php $custom_fields = get_post_custom($current_id); $nav_title = $custom_fields['nav_title']; $nav_subtitle = $custom_fields['nav_subtitle']; foreach ( $nav_title as $value ) echo "<strong>" . $value . "</strong><br />"; foreach ( $nav_subtitle as $value ) echo "<span>" . $value . "</span>"; ?> </a> </li> <?php endforeach; ?>
Thanks for any help =)
Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
- The topic ‘Main navigation isn’t showing all pages’ is closed to new replies.