Increase Number of Slides

I want to increase number of slides on my home page.

1. openĀ homeSlider.php
2. find these lines:

$searchArgs = array();
$searchArgs['post_type'] = 'slide';

and change it to read

$searchArgs = array();
$searchArgs['post_type'] = 'slide';
$searchArgs['posts_per_page'] = 15;

This will show 15 slides. If you want to show all slides, then new lines should look like this:

$searchArgs = array();
$searchArgs['post_type'] = 'slide';
$searchArgs['posts_per_page'] = -1;

 

0