Commit 9848ea4a by Muhammad Usman

sort courses alphabetically

parent 45c7d1fc
Pipeline #354 passed with stage
in 0 seconds
......@@ -22,7 +22,12 @@ if(count($orderData) > 0 && $orderData != "") {
</script>
<?php
}
$courses = new WP_Query(array('post_type' => 'vq_course', 'posts_per_page' => '-1'));
$courses = new WP_Query(array(
'post_type' => 'vq_course',
'posts_per_page' => '-1',
'orderby'=>'title',
'order'=>'ASC'
));
while (have_posts()):
the_post();
?>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment