Categories

Featured templates

WordPress Blogging theme. How to change order of slides

Lana Greene May 27, 2016
Rating: 5.0/5. From 2 votes.
Please wait...

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:

  1. Log in to your hosting cPanel file manager or connect via ftp;

  2. Navigate to wp-content/themes/themeXXX/inc/widgets/tm-smart-slider-widget/ folder on your server;

  3. Open class-tm-smart-slider-widget.php file to edit;

  4. 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.

  5. Change ‘order’ and/or ‘orderby’ value:

    WordPress_Blogging_theme.How_to_change_order_of_slides_1
  6. Save the settings in the file.

Feel free to check the detailed video tutorial below.

WordPress Blogging theme. How to change order of slides
This entry was posted in WordPress Tutorials and tagged Blogging theme, order, slider, WordPress. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket