Home › Forums › All Other Themes › Our Team Order
- This topic has 16 replies, 2 voices, and was last updated 4 years, 9 months ago by Sonl Sinha.
-
AuthorPosts
-
February 24, 2020 at 12:55 am #145624
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?February 24, 2020 at 6:14 am #145645Hi,
Kindly show us your website URL please?
Regards,
DaveFebruary 24, 2020 at 6:14 am #145646https://cowara.com.au
February 24, 2020 at 6:16 am #145650URL is cowara.com.au
February 24, 2020 at 6:20 am #145652Hi,
Kindly go to sktframe > core-functions.php line no: 541 find text ‘desc’ and replace ‘asc’
Regards,
DaveFebruary 24, 2020 at 6:25 am #145653What is sktframe?
February 24, 2020 at 6:38 am #145655Found it under edit theme but there is no “desc” text.
February 24, 2020 at 6:38 am #145656Hi,
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/ik5C4TCRegards,
DaveFebruary 24, 2020 at 6:41 am #145657Line 541 is
‘add_new’ => __( ‘Add New’,’complete’ ),February 24, 2020 at 6:49 am #145661Changed 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() ) {February 24, 2020 at 7:26 am #145671Hi,
Kindly go to Admin >> Our Team >> and arrange your team member by using drag and drop.
Regards,
DaveFebruary 24, 2020 at 7:30 am #145673as mentioned before – that doesn’t work….. They are displayed by date in asc (not by the order under “Our Team”
February 24, 2020 at 7:35 am #145674Hi,
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,
DaveFebruary 24, 2020 at 7:38 am #145677Emailed forum.
February 24, 2020 at 7:50 am #145678I 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’ -
AuthorPosts
- You must be logged in to reply to this topic.