View Single Post
  #66  
Old November 21st, 2012, 09:03 AM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi
Quote:
Originally Posted by george3 View Post
Sure www.toolsofpower.com it is s shopperpress not sure if that makes a differences
OK, I got this to work with a few changes:

In your theme's header.php file, I changed this:
PHP Code:
if(has_nav_menu('PPT-CUSTOM-MENU-PAGES')){ $string .= wp_nav_menu$GLOBALS['blog_custom_menu'] ); }else{ 
To this:
PHP Code:
if(has_nav_menu('PPT-CUSTOM-MENU-PAGES')){ $string .= wp_nav_menu( array( 'menu' => '15243' ) ); }else{ 
For your code that goes in the functions.php file I changed the original code to this:
PHP Code:
// Add store categories to nav menu 
function dfr_menu_items($items$args) { 
    if (
$args->menu == '15243') { 
        
$cats str_replace(array("<div>","</div>"), array("",""), datafeedr_tag('Category List?c=%ci')); 
        
$items $items $cats
    } 
    return 
$items

add_filter'wp_nav_menu_items''dfr_menu_items'10);
// add_filter( 'wp_list_pages', 'dfr_menu_items', 10, 2 ); 
As you can see I am pinpointing a specific menu (the menu with ID 15243). For some reason ShopperPress set defaults that overrode the WP hook system.

Eric