Title: Pagination changes when using shortcode within post
Last modified: June 25, 2018

---

# Pagination changes when using shortcode within post

 *  Resolved [opicron](https://wordpress.org/support/users/opicron/)
 * (@opicron)
 * [7 years, 12 months ago](https://wordpress.org/support/topic/pagination-changes-when-using-shortcode-within-post/)
 * Sorry for all the issues ;). This one is trivial but I wanted to bring it to 
   your attention as it might be more important for the inner workings of the plugin.
   Or for others.
 * Please check the following link: [https://www.tseportal.nl/2018/06/22/caxtontest4//](https://www.tseportal.nl/2018/06/22/caxtontest4//)
 * When viewing the pagination initially it displays: 1 2 3 >>. However when changing
   the page number, the number of pages increase from 3 to 4 and the display now
   reads: 1 2 3 4 >>.
 * This happens because initially the current post which we are viewing the shortcode
   in is not included in the pagination list. It is added when using the pagination.
    -  This topic was modified 7 years, 12 months ago by [opicron](https://wordpress.org/support/users/opicron/).
    -  This topic was modified 7 years, 12 months ago by [opicron](https://wordpress.org/support/users/opicron/).
    -  This topic was modified 7 years, 12 months ago by [opicron](https://wordpress.org/support/users/opicron/).

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

 *  Plugin Author [Iulia Cazan](https://wordpress.org/support/users/iulia-cazan/)
 * (@iulia-cazan)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/pagination-changes-when-using-shortcode-within-post/#post-10443544)
 * Hello,
    Try the version 8.2 and let me know if you still replicate the issue.
   Thanks!
 *  Thread Starter [opicron](https://wordpress.org/support/users/opicron/)
 * (@opicron)
 * [7 years, 11 months ago](https://wordpress.org/support/topic/pagination-changes-when-using-shortcode-within-post/#post-10444507)
 * You fixed it indeed! Thanks!

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

The topic ‘Pagination changes when using shortcode within post’ is closed to new
replies.

 * ![](https://ps.w.org/latest-post-shortcode/assets/icon-128x128.gif?rev=2355649)
 * [Latest Post Shortcode](https://wordpress.org/plugins/latest-post-shortcode/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/latest-post-shortcode/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/latest-post-shortcode/)
 * [Active Topics](https://wordpress.org/support/plugin/latest-post-shortcode/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/latest-post-shortcode/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/latest-post-shortcode/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [opicron](https://wordpress.org/support/users/opicron/)
 * Last activity: [7 years, 11 months ago](https://wordpress.org/support/topic/pagination-changes-when-using-shortcode-within-post/#post-10444507)
 * Status: resolved