View Single Post
  #94  
Old February 15th, 2013, 06:48 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Hi,

For the suffusion theme you either need to specify "top" or "main" in your function like one of these:

PHP Code:
// Add store categories to nav menu 
function dfr_menu_items($items$args) {
    if (
$args->theme_location == 'top') { 
        
$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); 
PHP Code:
// Add store categories to nav menu 
function dfr_menu_items($items$args) {
    if (
$args->theme_location == 'main') { 
        
$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); 
Eric