Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function uc_order_term( $wp_query ) {
- $wp_query->query(
- array(
- 'taxonomy' => 'category',
- 'orderby' => 'term_order',
- 'order' => 'ASC'
- )
- );
- }
- add_action( 'pre_get_terms', 'uc_order_term');
- function uc_order_post( $wp_query ) {
- $wp_query->set('orderby', 'menu_order');
- $wp_query->set('order', 'ASC');
- }
- add_action( 'pre_get_posts', 'uc_order_post', 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement