Lensa Slider Sort

Hi again,

This time i will share to you all about how to sort the slider of Lensa theme. There are so many people asking me about this thing.

To sort the photograph item on the slider, you have to modify a file named theme-functions.php (FTP > wp-content > themes > lensa > includes).

Find out this code around line 747:

query_posts( array(
        'post_type' => 'photograph',
        'meta_key' => 'colabs_feature_photograph',
        'meta_value'=> 'true',
        'posts_per_page' => $slide_number

Edit it become (for example):

query_posts( array(
        'post_type' => 'photograph',
        'meta_key' => 'colabs_feature_photograph',
        'meta_value'=> 'true',
	'orderby' => 'rand',
        'posts_per_page' => $slide_number

Those modification will made your slider photograph sorted by a random order. There are a lot of mod you can use for the order. You can check it at this URL (check for order & orderby parameters).


6 thoughts on “Lensa Slider Sort

  1. Hello Tandamerah !
    Thank you for you great work about Lensa’s customization. I’m having some trouble with the slideshow ; I don’t manage to pause the slideshow when I hover it with my mouse, even if I put “true” or “false” in the Lensa Dashboard. Do you have by any chance an advice for me ?
    Best regards,


    • Hi Alexia,

      It is a hard question since the pause_hover option only work if you are hovering on the image directly. At the Lensa case, the images are set to be a background, so even if you are hovering your mouse, it will not work.

      You will need to restructured the whole theme from scratch

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s