How to re-order Department

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #13472
    Kiran Reddykiran106
    Member

    Hi I am trying to reorder the department but it is not accepting please help.

    #13491
    VeenaVeena
    Moderator

    Pls modify the file loop-department.php line no:32 –

    $query_args = array(
                        'post_type' => 'department',
                        'posts_per_page' => -1
                    );
    

    to

    $query_args = array(
                        'post_type' => 'department',
                        'posts_per_page' => -1,
                        'orderby'=>'menu_order',
                        'order'=>'ASC'
                    );
    
    #13530
    Scherckaschercka
    Member

    Thanks! Was missing this in staff ordering and added it to loop-staff.php with the same result!

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘Invent Theme Support’ is closed to new topics and replies.