Title: Pagination error [Fixed]
Last modified: March 2, 2019

---

# Pagination error [Fixed]

 *  [gnr5](https://wordpress.org/support/users/gnr5/)
 * (@gnr5)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/pagination-error-fixed/)
 * Hi author,
 * Thanks for your effort on this plugin. I just started using it, I need to use
   pagination for ads purposes. I found a bug in the code.
 * functions.php line 427
    `$next_page_data = $next_page_data.'page/'.$page_num.'?
   currentScore=';` When that line executes it doesn’t generate the correct URL 
   because the get_the_permalink() doesn’t return the last forward slash (/) so 
   $next_page_data renders to [http://www.myurl.com/quizpage/2?currentScore](http://www.myurl.com/quizpage/2?currentScore)
 * I replaced that line with the missing slash and now it works:
    `$next_page_data
   = $next_page_data.'/page/'.$page_num.'?currentScore=';`

Viewing 1 replies (of 1 total)

 *  Plugin Author [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * (@harmonic_design)
 * [7 years, 3 months ago](https://wordpress.org/support/topic/pagination-error-fixed/#post-11267542)
 * Hi gnr5,
    Thanks for bringing this to my attention. Not sure how it slipped through
   the cracks! I’ll have it patched ASAP

Viewing 1 replies (of 1 total)

The topic ‘Pagination error [Fixed]’ is closed to new replies.

 * ![](https://ps.w.org/hd-quiz/assets/icon-256X256.gif?rev=2936040)
 * [HD Quiz](https://wordpress.org/plugins/hd-quiz/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hd-quiz/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hd-quiz/)
 * [Active Topics](https://wordpress.org/support/plugin/hd-quiz/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hd-quiz/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hd-quiz/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harmonic Design](https://wordpress.org/support/users/harmonic_design/)
 * Last activity: [7 years, 3 months ago](https://wordpress.org/support/topic/pagination-error-fixed/#post-11267542)
 * Status: not a support question