Change sequence order of sliders - Solved

Ask Theme Settings & Configuration Related Issues Here

Moderator: forum_m

Post Reply
timszczygiel
Posts: 8
Joined: December 29th, 2017, 8:34 pm

Change sequence order of sliders - Solved

Post by timszczygiel » December 30th, 2017, 1:40 am

Hi,

I have 5 images to display, and i have created 5 sliders... each with a preferred image. How can i change the sequence order of their display?

Tim

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

Re: Change sequence order of sliders

Post by support_staff » December 30th, 2017, 11:15 am

Hi timszczygiel,

Which type of sequence you want.
Eg - descending, ascending, date-wise which one you want?

Thanks.

timszczygiel
Posts: 8
Joined: December 29th, 2017, 8:34 pm

Re: Change sequence order of sliders

Post by timszczygiel » December 30th, 2017, 6:22 pm

Morning...

I would be happy with ASC buy name or some other field that i can control.

Tim

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

Re: Change sequence order of sliders

Post by support_staff » January 1st, 2018, 11:49 am

hi,

1. Firstly make a child theme using https://wordpress.org/plugins/orbisius- ... e-creator/ Plugin.

2. Now copy the index-slider.php file from your parent theme directory and paste the file into your child theme folder.

3. Here, in your child theme directory see the below code in line no 5

$args = array( 'post_type' => 'weblizar_slider','posts_per_page' =>$all_posts);

Replace the above line with the below line -

$args = array( 'post_type' => 'weblizar_slider','posts_per_page' =>$all_posts,'orderby'=> 'title','order' => 'ASC');

and save the file.

Thanks.

timszczygiel
Posts: 8
Joined: December 29th, 2017, 8:34 pm

Re: Change sequence order of sliders

Post by timszczygiel » January 2nd, 2018, 4:05 pm

Thanks... works great.

support_staff
Posts: 7199
Joined: February 26th, 2015, 1:40 pm

Re: Change sequence order of sliders

Post by support_staff » January 3rd, 2018, 11:21 am

You're most welcome.

Post Reply

Return to “Theme Settings & Configuration”