- Web templates
- E-commerce Templates
- CMS & Blog Templates
- Facebook Templates
- Website Builders
WordPress Blogging theme. How to change order of slides
May 27, 2016
This tutorial shows how to change order of slides in Blogging theme.
Originally Blogging themes do not have sample images, so you will need to upload your own ones.
Slider is set with the help of Smart Slider Widget – you can find it under Appearance -> Widgets tab in your dashboard.
You can adjust slider widget settings there, to change order of slides, you will need to edit class-tm-smart-slider-widget.php file, located in the wp-content/themes/themeXXX/inc/widgets/tm-smart-slider-widget/ folder on your server.
To change the order of slides, you should do the following:
Log in to your hosting cPanel file manager or connect via ftp;
Navigate to wp-content/themes/themeXXX/inc/widgets/tm-smart-slider-widget/ folder on your server;
Open class-tm-smart-slider-widget.php file to edit;
Locate the following code (you can use ‘search in file’ feature):
public function get_query_slider_items( $query_args = array() ) { $defaults_query_args = apply_filters( 'wild_ride_smart_slider_default_query_args', array( 'post_type' => 'post', 'orderby' => 'date', 'order' => 'ASC', 'posts_per_page' => -1, 'offset' => 0, 'tax_query' => array(), ) );
‘orderby’ sort retrieves posts by parameter. Defaults to ‘date (post_date)’. One or more options can be passed.
‘order’ designates the ascending or descending order of the ‘orderby’ parameter. Defaults to ‘DESC’. An array can be used for multiple order/orderby sets.
Please note there are 2 available order values: DESC and ASC.
Please refer to the following link for more details on order parameters.
Change ‘order’ and/or ‘orderby’ value:
Save the settings in the file.
Feel free to check the detailed video tutorial below.
WordPress Blogging theme. How to change order of slides