Title: loop-pagination error?
Last modified: August 24, 2016

---

# loop-pagination error?

 *  Resolved [Oliver-123](https://wordpress.org/support/users/oliver-123/)
 * (@oliver-123)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/loop-pagination-error/)
 * Coming from mTranslate now using qTranslate-x. Noticed an issue with what I supposed
   is linked to the following code:
 * in loop-nav.php from the theme “Origin” the command loop_pagination(); creates
   in the “main” language this:
 *     ```
       <nav class="pagination loop-pagination"><span class='page-numbers current'>1</span>
       <a class='page-numbers' href='http://www.myundisclosedurl.de/page/2/'>2</a>
       <span class="page-numbers dots">&hellip;</span>
       <a class='page-numbers' href='http://www.myundisclosedurl.de/page/13/'>13</a>
       <a class="next page-numbers" href="http://www.myundisclosedurl.de/page/2/">Vor &rarr;</a></nav>
       ```
   
 * whereas in the second language it creates this:
 *     ```
       <nav class="pagination loop-pagination"><span class='page-numbers current'>1</span>
       <a class='page-numbers' href='http://www.myundisclosedurl.de?lang=sv'>2</a>
       <span class="page-numbers dots">&hellip;</span>
       <a class='page-numbers' href='http://www.myundisclosedurl.de?lang=sv'>13</a>
       <a class="next page-numbers" href="http://www.myundisclosedurl.de?lang=sv">Next &rarr;</a></nav>
       ```
   
 * Hence, in the second version the code created cannot be used to browse through
   the pages as the page number is not in the url any longer.
 * Any idea on how to fix this?
 * BR
    Oliver
 * [https://wordpress.org/plugins/qtranslate-x/](https://wordpress.org/plugins/qtranslate-x/)

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

 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/loop-pagination-error/#post-5980127)
 * [@oliver-123](https://wordpress.org/support/users/oliver-123/),
 * is this problem maybe in relation with the Settings – Languages – Advanced Settings–
   URL Modification Mode?
 * Use Query Mode (?lang=en). Most SEO unfriendly, not recommended.
    or Use Pre-
   Path Mode (Default, puts /en/ in front of URL). SEO friendly.
 * Also Permalinks settings – Post name
 *  Thread Starter [Oliver-123](https://wordpress.org/support/users/oliver-123/)
 * (@oliver-123)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/loop-pagination-error/#post-5980133)
 * Changing from Query Mode to Pre-Path Mode helped. Thanks a lot!
 *  Plugin Author [Gunu](https://wordpress.org/support/users/grafcom/)
 * (@grafcom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/loop-pagination-error/#post-5980134)
 * [@oliver-123](https://wordpress.org/support/users/oliver-123/),
 * You are welcome!
 * You can review this plugin to help other people to find out the value.

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

The topic ‘loop-pagination error?’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/qtranslate-x_f9f9f9.svg)
 * [qTranslate X](https://wordpress.org/plugins/qtranslate-x/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/qtranslate-x/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/qtranslate-x/)
 * [Active Topics](https://wordpress.org/support/plugin/qtranslate-x/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/qtranslate-x/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/qtranslate-x/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Gunu](https://wordpress.org/support/users/grafcom/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/loop-pagination-error/#post-5980134)
 * Status: resolved