yeah sorry missed a ; retry the code above
No..i think there has to be the add filters on there
its there on the top of the code
right now is the code out or is it my code?
the menus are working but the Authors arent showing up
Try this
function wps_nav_authors($items, $args){
if( $args->theme_location == 'primary' ) {
$items . '<li><a href="#">Authors</a><ul class="sub-menu"><li>' . wp_list_authors('show_fullname=1&optioncount=0&orderby=post_count&order=DESC&number=8&echo=0') . '</li></ul></li>';
return $items;
}
}
add_filter('wp_nav_menu_items','wps_nav_authors', 10, 2);
sorry damn backticks
now the top menu isnt showing and the Authors arent showing
haha sorry grap the code the the filter at the bottom
Same..no author no top nav
the one with the sorry damn backticks, I move the add_filter to after you declare the function
ya thats the one i have on there now..still no top nav or authors
maybe it needs to be in an if statement? if theme_location == ‘primary’ else if ‘secondary?
Sorry will have to continue tomorrow or Monday, not sure my brain is working right at this point =) Way to late for me. I will have to look at it with a fresh head
Thanks for trying! I appreciate it!!