Sort Posts Alphabetically
1 2 3 |
$args = array( 'post_type' => 'name', 'orderby'=> 'title', 'order' => 'ASC' ); |
Replace ‘name’ with custom post type slug.
1 2 3 |
$args = array( 'post_type' => 'name', 'orderby'=> 'title', 'order' => 'ASC' ); |
Replace ‘name’ with custom post type slug.