Title: Pagination Doesn&#8217;t Work
Last modified: August 21, 2018

---

# Pagination Doesn’t Work

 *  Resolved [model13](https://wordpress.org/support/users/model13/)
 * (@model13)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-35/)
 * Hi, I’m testing out Download Monitor 4.1.0 on WP 4.9.8. I was trying out the 
   pagination functionality of the downloads shortcode and found it doesn’t work.
   A sample of the attributes I’m using (I’ve tried it both with and without offset
   set):
 * per_page =”6″ orderby=”title” order=”asc” paginate=”true”
 * I’ve tried this with each of the available templates. It displays the page links
   correctly, but if you click on a link, the page goes to the new URL but continues
   to display the first page of files.
 * In digging around in the plugin code I found that both Shortcodes.php and pagination.
   php are trying to get the current page using get_query_var( ‘paged’ ). But get_query_var()
   only returns values from the global $wp_query ([https://codex.wordpress.org/Function_Reference/get_query_var](https://codex.wordpress.org/Function_Reference/get_query_var))—
   and $wp_query isn’t being used to output the downloads. The entity you need the
   current page information for is the $downloads array.
 * I’m hoping you can take a look at this when you have an opportunity and adjust
   the pagination functionality. Thanks for the work you’ve done on Download Monitor—
   it’s very useful and I’d love to be able to use it for a project.

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

 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-35/#post-10634981)
 * Hello,
 * Thank you for your kind words.
 * I just tested this and it worked without any issues. I assume some plugin or 
   theme is changing the database queries. Can you please switch to default WordPress
   theme, disable all plugins and test again? If it works, then enable 1 plugin 
   at a time and test again.
 *  [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * (@hchouhan)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-35/#post-10687577)
 * Hello,
 * There have been no replies to this topic, so I’m marking this as resolved. Please
   do let us know if you’re still experiencing an issue.

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

The topic ‘Pagination Doesn’t Work’ is closed to new replies.

 * ![](https://ps.w.org/download-monitor/assets/icon-256x256.png?rev=3198936)
 * [Download Monitor](https://wordpress.org/plugins/download-monitor/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/download-monitor/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/download-monitor/)
 * [Active Topics](https://wordpress.org/support/plugin/download-monitor/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/download-monitor/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/download-monitor/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Harish Chouhan](https://wordpress.org/support/users/hchouhan/)
 * Last activity: [7 years, 8 months ago](https://wordpress.org/support/topic/pagination-doesnt-work-35/#post-10687577)
 * Status: resolved