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
Resolved
Posted in: Medical

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

  • 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
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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, 7 months ago by m2comp.
    2017-04-03 at 10:28 am
    #19738
    Fem
    Keymaster
    • Topics: 2
    • Replies: 8473
    • Total posts: 8475
    • Post count: 6003

    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.