admin管理员组文章数量:1332881
In my child theme I have top navigation and custom navigation (archive menu). When I add new page to archive menu, same page gets added to top nav. In the admin top nav doesn't show new page though,however, in the browser there's new page showing in top nav.
I unchecked 'Automatically add new top-level pages to this menu' in my top nav but it didn't help
function archive_menu() {
register_nav_menu('archive_menu',__( 'Archive' ));
}
add_action( 'init', 'archive_menu' );
output in index.php
<?php
wp_nav_menu(
array(
'theme_location'=> 'archive_menu'
)
);?>
Question: Is there a way to stop new page added to top nav and only have new page added to my archive nav.
BACKEND ADMIN
This is how my custom menu looks in the child theme admin
This is how my primary menu looks in the child theme admin
This is primary (top) nav in the browser (red arrow shows 'archive' menu item which gets added automatically even though I didn't add it in the admin).
本文标签: child theme automatically adds new page to top menu instead of only custom menu
版权声明:本文标题:child theme automatically adds new page to top menu instead of only custom menu 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742313062a2451264.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论