Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Page & Category Menu Bars (http://forum.bytesforall.com/forumdisplay.php?f=10)
-   -   Not working: 3.4.9 Combining Category and Pages menu (http://forum.bytesforall.com/showthread.php?t=7210)

JFG May 20, 2010 01:57 PM

Not working: 3.4.9 Combining Category and Pages menu
 
In reference to this thread (which is closed) : http://forum.bytesforall.com/showthr...+page+category

It does not work for me. I added the two lines after line 44 as instructed by Juggledad and I'm getting this error:

Parse error: syntax error, unexpected T_ECHO in /home/dreamin5/public_html/wp-content/themes/atahualpa349/functions/bfa_header_config.php on line 45

If I replace line 44 and 45 with the 2 other lines it does get the category pages to show up on the pages menu but the page pages don't show up.

In any case, I would like to combine the Categories and Pages menu but have the Categories show up before the Pages on the menu.

Can anyone help, Juggledad? :)

Thanks

JF

paulae May 23, 2010 08:32 AM

Wordpress 3.0 allows custom menu creation, combining pages, categories, outside URLs, custom post types. The beta version is available for download.

juggledad May 23, 2010 09:01 AM

Add teh code after line 45, not 44 - sorry - I've changed the other thread

olsonsp4c Jun 2, 2010 08:59 PM

Here's how to do it in 3.5.1:

In functions/bfa_header_config.php

replace:

PHP Code:

    // Empty setting "levels" same as 0
    
if ( $bfa_ata['levels_page_menu_bar'] == '' ) {
        
$bfa_ata['levels_page_menu_bar'] = 0
    }    

    echo 
bfa_hor_pages($bfa_ata['sorting_page_menu_bar'], $bfa_ata['levels_page_menu_bar'], 
    
$bfa_ata['titles_page_menu_bar'], $bfa_ata['exclude_page_menu_bar']); 

With this:

PHP Code:

    // Empty setting "levels" same as 0
    
if ( $bfa_ata['levels_page_menu_bar'] == '' ) {
        
$bfa_ata['levels_page_menu_bar'] = 0
    }    
    
        
//Added Category Menu Bar Begin
    
echo bfa_hor_cats($bfa_ata['sorting_cat_menu_bar'], $bfa_ata['order_cat_menu_bar'], 
    
$bfa_ata['levels_cat_menu_bar'], $bfa_ata['titles_cat_menu_bar'], $bfa_ata['exclude_cat_menu_bar']);
        
//Added Category Menu Bar End

    
echo bfa_hor_pages($bfa_ata['sorting_page_menu_bar'], $bfa_ata['levels_page_menu_bar'], 
    
$bfa_ata['titles_page_menu_bar'], $bfa_ata['exclude_page_menu_bar']); 

Scott


All times are GMT -6. The time now is 07:59 AM.

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