Title: Posts in slider
Last modified: August 21, 2016

---

# Posts in slider

 *  Resolved [dave_udes](https://wordpress.org/support/users/dave_udes/)
 * (@dave_udes)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/posts-in-slider/)
 * Hi,
 * I would like to know if it’s possible to have a post in the slider option, while
   not being visible on the main page?
 * What I don’t like, is that my first slide is the same posts that is right under
   the slider.
 * Thanks.

Viewing 1 replies (of 1 total)

 *  [vladff](https://wordpress.org/support/users/vladff/)
 * (@vladff)
 * [11 years, 9 months ago](https://wordpress.org/support/topic/posts-in-slider/#post-5127325)
 * You don’t really need to hide the first post from the index.
 * What you need to do is overwrite the /inc/slider/slider.php file from your child
   theme and change this code:
 *     ```
       $args = array(
       	'posts_per_page' => $number,
       	'cat' => $cat
       );
       ```
   
 * to this code:
 *     ```
       $args = array(
       	'posts_per_page' => $number,
       	'cat' => $cat,
       	'orderby' => 'rand'
       );
       ```
   
 * This will display the posts randomly in your slider.
    Another option is to change
   to the following code, which will show the posts in ascending order, instead 
   of the descending order in which they are shown now:
 *     ```
       $args = array(
       	'posts_per_page' => $number,
       	'cat' => $cat,
       	'orderby' => 'ASC'
       );
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Posts in slider’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/solon/1.08/screenshot.png)
 * Solon
 * [Support Threads](https://wordpress.org/support/theme/solon/)
 * [Active Topics](https://wordpress.org/support/theme/solon/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/solon/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/solon/reviews/)

## Tags

 * [posts](https://wordpress.org/support/topic-tag/posts/)

 * 1 reply
 * 2 participants
 * Last reply from: [vladff](https://wordpress.org/support/users/vladff/)
 * Last activity: [11 years, 9 months ago](https://wordpress.org/support/topic/posts-in-slider/#post-5127325)
 * Status: resolved