Skip to content

Instantly share code, notes, and snippets.

@mariokerkhof
Last active February 1, 2016 09:12
Show Gist options
  • Save mariokerkhof/f4cef525c90e5e306cea to your computer and use it in GitHub Desktop.
Save mariokerkhof/f4cef525c90e5e306cea to your computer and use it in GitHub Desktop.
// Sorteer Taxonomy field op volgorde naam in dashboard
function mkr_acf_taxonomy_field_dashboard_order( $args, $field, $post_id ) {
$args['orderby'] = 'name';
$args['order'] = 'DESC';
// return
return $args;
}
add_filter('acf/fields/taxonomy/query/name=gebied', 'mkr_acf_taxonomy_field_dashboard_order', 10, 3);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment