ok to get both the GD items BEFORE the menu please remove the other bits of code and add this:
remove_filter('wp_nav_menu_items','geodir_menu_items', 100);
add_filter('wp_nav_menu_items','geodir_menu_items_mycustom', 50,2);
remove_filter('wp_nav_menu_items','geodir_location_menu_items', 110);
add_filter('wp_nav_menu_items','geodir_location_menu_items_mycustom', 60, 2);
function geodir_menu_items_mycustom($items, $args){
$location = $args->theme_location;
$geodir_theme_location = get_option('geodir_theme_location_nav');
if ( has_nav_menu( $location )=='1' && is_array($geodir_theme_location) && in_array($location,$geodir_theme_location) ) {
$items = geodir_add_nav_menu_items().$items;
return $items;
}
else
{
return $items;
}
}
function geodir_location_menu_items_mycustom($items, $args)
{
$location = $args->theme_location;
$geodir_theme_location = get_option('geodir_theme_location_nav');
if ( has_nav_menu( $location )=='1' && is_array($geodir_theme_location) && in_array($location,$geodir_theme_location) ) {
$items = add_nav_location_menu_items().$items;
}
return $items;
}
Thanks,
Stiofan