View Single Post
  #81  
Old February 8th, 2013, 05:09 PM
thk1976 thk1976 is offline
 
Join Date: May 2012
Posts: 232
Default

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 );