Order terms by term_order

Context Post Type: Resources Taxonomy: Media Type, Term: Audio Taxonomy: Series The following code displays a unique list of the custom taxonomy “Series” I want to order the list by term_order, but it is not working. Any suggestions? The site. Currently it’s ordered by ID <?php $post_data = array(); $my_query = new WP_Query( array( ‘post_type’ … Read more

Are there any reasons you can’t use strings for admin menu positions?

When interacting with the admin menu, for instance via add_menu_page, there is a $position parameter. The inline docs indicate that this should be an integer. The Codex agrees, but adds a note that you can use a float if you make it a string (e.g. ‘63.3’). In wp-admin/includes/menu.php the array is sorted by comparing the … Read more

Get current menu_order

WordPress implements a simple order functionality by default. What’s the common method, to retrieve the menu_order for the current post or page? 2 s 2 If you have the post with an $id: $thispost = get_post($id); $menu_order = $thispost->menu_order; WordPress itself does not provide a function to get the menu_order, so you have to query … Read more