I have a primary menu registered and displayed that consists of 4 links (home, about, news, blog). I want to add html (a logo) in between the second and third menu and I was
Little variation on Compass' solution, getting rid of the loop.
add_filter('wp_nav_menu_items','add_custom_in_menu', 10, 2);
// add in Logo in the middle of the menu
//
function add_custom_in_menu( $items, $args )
{
if( $args->theme_location == 'footer_navigation' )
{
$new_item = array( '' );
$items = preg_replace( '/<\/li>\s- ,
Not sure if it will be much fast using build in functions. Your choice