New page items not being added to page.
-
The site in question is https://time2chill.co.uk
I originally migrated this website from the original host with an ftp transfer and a copying of the options table from the database.
Something I’ve found which is not working correctly is the navbar at the top is not adding any new pages I’ve added since the migration. If I edit the old pages or change the parents it will display correctly.
The problem seems to only be with new pages I add.
I’ve also found that the side menu works prerectly fine.
I’ve tried to create new menu’s in the appearance>menu and I’ve even went into the theme settings and ensured that the theme is pointing to the correct menu’s
The theme is not connecting to my new custom menu’s I’ve created but appears to be falling back to a default theme
function mytheme_addmenus() { register_nav_menus( array('main_nav' => 'The Main Menu',)); } add_action( 'init', 'mytheme_addmenus' ); function mytheme_nav() { if ( function_exists( 'wp_nav_menu' ) ) wp_nav_menu( 'menu=main_nav&container_class=pagemenu&fallback_cb=mytheme_nav_fallback' ); else mytheme_nav_fallback(); } function mytheme_nav_fallback() { wp_page_menu( 'show_home=Start&menu_class=pagemenu' ); }
this was the code from the functions.php and here is the relevant code from the header.php
<script type="text/javascript"> $j(document).ready(function() { $j('ul.ot-menu').superfish(); }); </script> <div id="navbar"> <ul class="ot-menu"> <li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a style="border:none;" href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'organicthemes'); ?></a></li> <?php $include_pages = ot_option('include_pages'); ?> <?php wp_list_pages('title_li=&sort_column=menu_order&include='.implode(',', $include_pages)); ?> </ul> </div>
I’m pulling my hair out over this. I’ve even went into the database to see if there was any differences between the new posts and the old posts which may be causing this but I don’t think I was able to find anything which appeared to be causing it.
Thanks for your time for all who reply
- The topic ‘New page items not being added to page.’ is closed to new replies.