Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] How can i exclude? (http://forum.bytesforall.com/showthread.php?t=18480)

pixeltrader Sep 26, 2012 03:31 AM

[SOLVED] How can i exclude?
Hello, thanks for this great Theme. I will send in the next Days something over Paypal. But i have a little Question: How can i exclude a page (not mean single) from the Menu :confused:

I can't find in the files a wp_list_pages so that i can exclude a Page. Is there any possibility to do that :confused:

Thanks for your Help,


Jam Sep 26, 2012 04:51 AM

Plugin http://wordpress.org/extend/plugins/exclude-pages/

or if you are using the WP menu, just dont add that page.

Unless I dont get your question right?

Its not a theme thing (havent looked specifically at this theme though), just WP navigation.

juggledad Sep 26, 2012 05:03 AM

Montezuma doesn't use wp_list_pages, it uses wp_nav_menu in header.php

pixeltrader Sep 26, 2012 06:50 AM

Thanks Jam and juggledad for your Reply's

I found this Tutorial for wp_nav_menu: http://bacsoftwareconsulting.com/blo...menu-function/

Location: /wp-content/themes/montezuma/admin/default-templates/sub-templates/header.php

PHP Code:

        <?php wp_nav_menu( array( 
'container' => 'nav',
'container_class' => 'menu-wrapper col7',
'container_id' => 'menu1-wrapper',
'menu_id' => 'menu1',
'menu_class' => 'cf menu',
'theme_location' => 'menu1',
'exclude' => '152',
'fallback_cb' => 'bfa_page_menu'
) ); ?>

But it works not, the specially page will displaying in the menu.

pixeltrader Sep 26, 2012 07:38 AM

Ok, i make it with the Menu Options from WP. It works now. I work to long with wp_list_pages :) LOL

All times are GMT -6. The time now is 05:07 PM.

Powered by vBulletin® Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.