Title: Offset option doesn&#039;t work
Last modified: September 1, 2016

---

# Offset option doesn't work

 *  Resolved [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/)
 * Hello,
 * I’m trying to show the first four post using the shortcode option `offset="4"`
   but it’s not working.
 * This is the shorcode I have generated:
 *     ```
       <?php
             echo do_shortcode('[ajax_load_more post_type="stories" offset="4" posts_per_page="2" pause="true" scroll="false" container_type="div"]');
           ?>
       ```
   
 * The archive page where I paste the code shows only the button to load more posts,
   when you click on the button, it loads each time 2 post more but the previous
   4 post are not showed.
 * Hope you can help me.
 * Thank you!
 * [https://wordpress.org/plugins/ajax-load-more/](https://wordpress.org/plugins/ajax-load-more/)

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

 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/#post-7532305)
 * Hi andresgl,
    That is what the `offset` parameter does. It skips that amount 
   of posts specified in the `offset`.
 * What are you looking to do?
 *  Thread Starter [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/#post-7532319)
 * **HI dcooney,**
 * Thanks for your replay.
 * I see… I thought that the offset parameter is for show how many post you want
   to show by default..
 * I want to show 4 post by default and under that 4 post the button ‘Show more’.
 * Currently doesn’t show any post only the button “Show more”.
 * Many Thanks!
 *  Plugin Author [Darren Cooney](https://wordpress.org/support/users/dcooney/)
 * (@dcooney)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/#post-7532322)
 * Updated shortcode below. You were pausing the load of posts.
 *     ```
       echo do_shortcode('[ajax_load_more post_type="stories" posts_per_page="4" pause="false" scroll="false" container_type="div"]');
       ```
   
 *  Thread Starter [andresgl](https://wordpress.org/support/users/andresgl/)
 * (@andresgl)
 * [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/#post-7532328)
 * Thanks a lot dcooney. Your pluging is amazing and you too 🙂

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

The topic ‘Offset option doesn't work’ is closed to new replies.

 * ![](https://ps.w.org/ajax-load-more/assets/icon-256x256.png?rev=2944639)
 * [Ajax Load More – Infinite Scroll, Load More, & Lazy Load](https://wordpress.org/plugins/ajax-load-more/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ajax-load-more/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ajax-load-more/)
 * [Active Topics](https://wordpress.org/support/plugin/ajax-load-more/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ajax-load-more/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ajax-load-more/reviews/)

## Tags

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

 * 4 replies
 * 2 participants
 * Last reply from: [andresgl](https://wordpress.org/support/users/andresgl/)
 * Last activity: [9 years, 10 months ago](https://wordpress.org/support/topic/offset-option-doesnt-work/#post-7532328)
 * Status: resolved