Your Time:
Our Time:
← Back to discussions

Doctors reordering

Need help with a different issue? Search the forums or open a new ticket.
Open a support ticket

This topic has 3 replies, 2 voices, and was last updated 9 years, 5 months ago by Anonymous.

  • 2017-03-31 at 1:42 pm
    Supported
    #19721
    m2comp
    Participant
    • Topics: 1
    • Replies: 1
    • Total posts: 2
    • Post count: 3

    Hi, is it possible to easily resort the order the doctors are in after they are all entered.

    2017-03-31 at 3:14 pm
    #19722
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    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
    );
    2017-04-01 at 11:54 am
    Supported
    #19726
    m2comp
    Participant
    • Topics: 1
    • Replies: 1
    • Total posts: 2
    • Post count: 3

    Thank you

    • This reply was modified 9 years, 5 months ago by m2comp.
    2017-04-03 at 10:28 am
    #19738
    Anonymous
    Inactive
    • Topics: 0
    • Replies: 3227
    • Total posts: 3227
    • Post count: 0

    We are setting this topic to be resolved. If you wish to update this topic please reply here instead of creating another topic.

You must be logged in to reply to this topic.