• I add pages to the wordpress theme and they appear in the right hand navigation bar, but only two appear in the top graphical navigation bar, one of which I do not recognize anywhere in the theme setup called “uncategorized”. (i did not create this tab)

    https://www.wife-lab.beatwife.com

    This is the third theme i have used now and it has ended up having some kind of bug or something that I do not understand, so I am now trying the support forum instead of a new theme. . . .

Viewing 3 replies - 1 through 3 (of 3 total)
  • The template tag, wp_list_pages(), is typically used by theme designers to display Pages in a nav bar. With the help of the Template Hierarchy article, determine what Template is displaying your Pages (probably header.php), then look for wp_list_pages and see if an exclude=x or include=x is limiting the Pages displayed.

    Another possibility is to use Simon Wheatley’s Exclude Pages plugin which gives you the include/exclude choice when you adding/editing Pages.

    Thread Starter wonderchild79

    (@wonderchild79)

    none if these suggestions seem to work for me, I can not find “wp_list_pages()” anywhere and the plugin does not do anything for the theme, although the checkbox does appear in the page editor.

    thank you anyway for your suggestions.

    here is the code from the “header”:

    `<title>
    <?php if ( is_home() ) { ?><?php bloginfo(‘description’); ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_search() ) { ?><?php echo $s; ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_single() ) { ?><?php wp_title(”); ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_page() ) { ?><?php wp_title(”); ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_category() ) { ?>Archive <?php single_cat_title(); ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_month() ) { ?>Archive <?php the_time(‘F’); ?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_tag() ) { ?><?php single_tag_title();?> » <? bloginfo(‘name’); ?><?php } ?>
    <?php if ( is_404() ) { ?>Sorry, not found! » <? bloginfo(‘name’); ?><?php } ?>
    </title>

    <link rel=”stylesheet” href=”<?php bloginfo(‘stylesheet_url’); ?>” type=”text/css” media=”screen” />

    <link rel=”alternate” type=”application/rss+xml” title=”RSS Feed” href=”<?php bloginfo(‘rss2_url’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    <link rel=”stylesheet” type=”text/css” href=”<?php bloginfo(‘template_directory’); ?>/lib/superfish.css” media=”screen”>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/lib/js/jquery-1.2.6.min.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/lib/js/superfish.js”></script>
    <script type=”text/javascript” src=”<?php bloginfo(‘template_directory’); ?>/lib/js/supersubs.js”></script>

    <script type=”text/javascript”>

    $(document).ready(function(){
    $(“ul.sf-menu”).supersubs({
    minWidth: 12, // minimum width of sub-menus in em units
    maxWidth: 27, // maximum width of sub-menus in em units
    extraWidth: 1 // extra width can ensure lines don’t sometimes turn over
    // due to slight rounding differences and font-family
    }).superfish();
    });

    </script>

    <?php if (is_singular()) wp_enqueue_script( ‘comment-reply’ ); wp_head(); ?>

    </head>

    <body>

    <div id=”page”>

    <div id=”header”>

    <div id=”blog-logo” class=”clearfix”>
    <h1 id=”blog-title”>“><? bloginfo(‘name’); ?></h1>
    <h2 id=”blog-description”><? bloginfo(‘description’); ?></h2>
    </div>

    <ul id=”menu” class=”sf-menu clearfix”>
    <li class=”cat_item<?php if(is_home()) echo ‘ current-cat’; ?>”>“>Home
    <?php wp_list_categories(‘title_li=&sort_column=menu_order’); ?>

    <div id=”rss”>
    “>Subscribe to RSS Feed
    </div>

    </div><!– end header –>

    That theme uses categories <?php wp_list_categories('title_li=&sort_column=menu_order'); ?>, not pages in the nav menu.

    Look at the theme Amazing Grace for an example of using Pages and Categories in the header’s navigation.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘pages not adding to the navigation bar’ is closed to new replies.