Ticket #4709: 4709.diff
File 4709.diff, 620 bytes (added by , 5 years ago) |
---|
-
inc/helphub-post-types/classes/class-helphub-post-types.php
213 213 public function fix_archive_category( WP_Query $query ) { 214 214 if ( ! is_admin() && is_category() && $query->is_main_query() ) { 215 215 $query->set( 'post_type', 'helphub_article' ); 216 $query->set( 'orderby', 'menu_order' ); 217 $query->set( 'order', 'ASC' ); 216 218 } 217 219 } // End fix_archive_category() 218 220