Title: custom div class sort 2 fields
Last modified: August 31, 2016

---

# custom div class sort 2 fields

 *  [spartyjoe](https://wordpress.org/support/users/spartyjoe/)
 * (@spartyjoe)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/custom-div-class-sort-2-fields/)
 * Hello,
 * I’m trying to change the sort order to sort on to fields. When I update the orderby
   it only works for the first field. Any ideas why this won’t sort?
 *     ```
       <div class="et_pb_row">
   
       	<?php
       		$args = array(
       			'post_type'  => 'course',
       			'child_of'   => 0,
       			'orderby'    => 'course, post_title',
       			'order'      => 'ASC',
       			'hide_empty' => 0,
       			'taxonomy'   => 'cat_course',
       			'pad_counts' => false
                              );
       ```
   

The topic ‘custom div class sort 2 fields’ is closed to new replies.

 * 0 replies
 * 1 participant
 * Last reply from: [spartyjoe](https://wordpress.org/support/users/spartyjoe/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/custom-div-class-sort-2-fields/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
