View Single Post
  #82  
Old February 8th, 2013, 05:12 PM
Eric's Avatar
Eric Eric is offline
Datafeedr Team
 
Join Date: Feb 2008
Posts: 16,902
Default

Quote:
Originally Posted by thk1976 View Post
I have added this code

// Add store categories to nav menu
function dfr_menu_items($items, $args) {
if ($args->theme_location == 'primary') {
$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, 2 );
// add_filter( 'wp_list_pages', 'dfr_menu_items', 10, 2 );
Did you already create a Menu here WordPress Admin Area > Appearance > Menus and then set that menu as the Primary Menu?



Eric