WordPress.org

Making WordPress.org

Ticket #4709: 4709.diff

File 4709.diff, 620 bytes (added by felipeelia, 7 months ago)
  • inc/helphub-post-types/classes/class-helphub-post-types.php

     
    213213        public function fix_archive_category( WP_Query $query ) {
    214214                if ( ! is_admin() && is_category() && $query->is_main_query() ) {
    215215                        $query->set( 'post_type', 'helphub_article' );
     216                        $query->set( 'orderby', 'menu_order' );
     217                        $query->set( 'order', 'ASC' );
    216218                }
    217219        } // End fix_archive_category()
    218220