Get “wp_get_nav_menu_items” to sort alphabetically [duplicate]

Absolutely no idea why I got a negative vote on this. Turns out this is actually a bug in wordpress: https://core.trac.wordpress.org/ticket/15533

The solution is to use “object” instead of “array”.

$args = array(
    'orderby'=> 'title',
    'output' => object);

Hope it helps someone else.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)