Title: Problem with first post
Last modified: August 21, 2016

---

# Problem with first post

 *  Resolved [Pedro](https://wordpress.org/support/users/ccpedro/)
 * (@ccpedro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-first-post/)
 * First, thanks for the great plugin!
    I’m having problems with the first post.
   Always the most recent post is not shown in the slider. Anyone is having the 
   same issue?
 * [http://wordpress.org/plugins/advanced-post-slider/](http://wordpress.org/plugins/advanced-post-slider/)

Viewing 5 replies - 1 through 5 (of 5 total)

 *  Plugin Author [Ahsanullah Akanda](https://wordpress.org/support/users/digontoahsan/)
 * (@digontoahsan)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272307)
 * I checked it with different version and different post type but didn’t get this
   issue.Check more if you still have problem provide little more details.
    N.B.
   Only the current page or post where you put the slider will be auto exclude from
   slideshow.
 *  Thread Starter [Pedro](https://wordpress.org/support/users/ccpedro/)
 * (@ccpedro)
 * [12 years, 7 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272393)
 * Hi, I put the following code `<?php echo do_shortcode( '[advps-slideshow optset
   ="1"]' ); ?>` in the main page. Even so, it’s exclude the most recent post.
 * The solution that I got was delete the code: `$exclude[] = $current;` from line
   343 of _advanced-post-slider.php_.
 * Thanks for the fast reply!
 *  [Dante](https://wordpress.org/support/users/dcastros1/)
 * (@dcastros1)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272632)
 * If Pedro really had that problem and this was the solution, delete the code: 
   $exclude[] = $current; from line 343 of advanced-post-slider.php.
 *  [Angela Bowman](https://wordpress.org/support/users/askwpgirl/)
 * (@askwpgirl)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272653)
 * I had exact same problem as Pedro. Wracked my brain to get the post to display
   and wondered what was wrong. Pedro’s solution to remove that line from the advanced-
   post-slider.php file worked great! Thanks! Hopefully this will be fixed in a 
   future update of the plugin. It always exclude the most recent post from the 
   slider, which it shouldn’t do. If the post is not the most recent post of all
   the posts, it’s fine. Whew!
 * And Digontoahsan is wrong. It is not only the current page or post where you 
   have the slider. I am showing this slider on a custom home page and use the same
   PHP code as Pedro for that page, so there is definitely a bug of the plugin excluding
   the latest post from the slider if the slider is used on the blog home page.
 *  [TrishaM](https://wordpress.org/support/users/trisham/)
 * (@trisham)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272659)
 * Same problem, same solution worked, and askwpgirl is right – this occurs on any
   post/page where the plugin is loaded – most recent post is skipped.
 * PLEASE digontoahsan, FIX this bug so that when this plugin is update you won’t
   be overwriting this fix for anyone who has had to make it.

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Problem with first post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/advanced-post-slider_b6b7a3.svg)
 * [Advanced post slider](https://wordpress.org/plugins/advanced-post-slider/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-post-slider/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-post-slider/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-post-slider/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-post-slider/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-post-slider/reviews/)

 * 5 replies
 * 5 participants
 * Last reply from: [TrishaM](https://wordpress.org/support/users/trisham/)
 * Last activity: [12 years, 5 months ago](https://wordpress.org/support/topic/problem-with-first-post/#post-4272659)
 * Status: resolved