View Single Post
Old April 26th, 2011, 05:48 PM
onlineshopper onlineshopper is offline
Join Date: Mar 2011
Posts: 13

I have the following code in functions.php in my child theme folder:
// Filter wp_nav_menu() to add additional links and other output
function new_nav_menu_items($items) {
$cats = str_replace(array("<div>","</div>"), array("",""), datafeedr_tag('Category List?c=%ci'));
$items = $items . $cats;
return $items;
add_filter( 'wp_list_pages', 'new_nav_menu_items' );
add_filter( 'wp_nav_menu_primary_items', 'new_nav_menu_items' );