This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by Anonymous.
Viewing 4 posts - 1 through 4 (of 4 total)
In template-doctors.php file, you’ll find a query like this,
$query = array(
'post_type' => 'doctor',
'posts_per_page' => -1,
'taxonomy' => 'appointment',
'order' => 'DESC'
);
If you want the order and orderby options, you can add like this,
$query = array(
'post_type' => 'doctor',
'posts_per_page' => -1,
'taxonomy' => 'appointment',
'order' => 'DESC', // ASC or DESC
'orderby' => 'ID', // title, ID, date, menu_order
);
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.