Our Team Order

Home Forums All Other Themes Our Team Order

Viewing 15 posts - 1 through 15 (of 17 total)
  • Author
    Posts
  • #145624
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    Hi Guys,

    I am running Contractor Pro and would like to change the order in which “Our Team posts are displayed.
    I have installed “Intuitive Custom Post Order” and enabled the “Our Team” to be sortable, but how do I change the sort order?

    #145645
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31026
    • Total: 31026
    Member since: August 16, 2013

    Hi,

    Kindly show us your website URL please?

    Regards,
    Dave

    #145646
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    https://cowara.com.au

    #145650
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    URL is cowara.com.au

    #145652
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31026
    • Total: 31026
    Member since: August 16, 2013

    Hi,

    Kindly go to sktframe > core-functions.php line no: 541 find text ‘desc’ and replace ‘asc’

    Regards,
    Dave

    #145653
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    What is sktframe?

    #145655
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    Found it under edit theme but there is no “desc” text.

    #145656
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31026
    • Total: 31026
    Member since: August 16, 2013

    Hi,

    Kindly go to Appearance >> Theme Editor >> sktframe >> core-functions.php line no: 541 find text ‘desc’ and replace ‘asc’

    See example below:
    https://imgur.com/a/ik5C4TC

    Regards,
    Dave

    #145657
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    Line 541 is
    ‘add_new’ => __( ‘Add New’,’complete’ ),

    #145661
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    Changed line 385 and now the sort is reversed.
    How do I choose the order?

    // Shortcode Our Team
    // [ourteam col=”4″ show=”4″ excerptlength=”25″]

    function ourteam_func( $atts ) {
    extract( shortcode_atts( array(
    ‘col’ => ‘4’,
    ‘show’ => ‘4’,
    ‘excerptlength’ => ’25’,
    ), $atts ) );
    extract( shortcode_atts( array( ‘show’ => $show,), $atts ) ); $ourtm = ”; wp_reset_query();

    $ourtm = ‘<div class=”sectionrow skt-ourteam”>’;
    $args = array( ‘post_type’ => ‘team’, ‘posts_per_page’ => $show, ‘post__not_in’ => get_option(‘sticky_posts’), ‘orderby’ => ‘date’, ‘order’ => ‘asc’ );
    query_posts( $args );
    $n = 0;
    if ( have_posts() ) {

    #145671
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31026
    • Total: 31026
    Member since: August 16, 2013

    Hi,

    Kindly go to Admin >> Our Team >> and arrange your team member by using drag and drop.

    Regards,
    Dave

    #145673
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    as mentioned before – that doesn’t work….. They are displayed by date in asc (not by the order under “Our Team”

    #145674
    Sonl SinhaSonl Sinha
    Moderator
    • Topics: 0
    • Replies: 31026
    • Total: 31026
    Member since: August 16, 2013

    Hi,

    Kindly send us your URL of the site and WordPress admin details (Username & Password) and team member order as well via email:[email protected] Please mention this forum URL while replying so that we understand what needs to be done.

    We’ll check and revert back to you.

    Regards,
    Dave

    #145677
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    Emailed forum.

    #145678
    Laurence OakeyLaurence Oakey
    Participant
    • Topics: 21
    • Replies: 110
    • Total: 131
    Member since: January 20, 2020

    I have fixed by changing the line to
    $args = array( ‘post_type’ => ‘team’, ‘posts_per_page’ => $show, ‘post__not_in’ => get_option(‘sticky_posts’), ‘orderby p.menu_order ASC LIMIT 1’

Viewing 15 posts - 1 through 15 (of 17 total)
  • You must be logged in to reply to this topic.