[wp-trac] [WordPress Trac] #19633: Multilingual Permalinks - Broken Pagination

WordPress Trac wp-trac at lists.automattic.com
Wed Dec 21 13:23:32 UTC 2011


#19633: Multilingual Permalinks - Broken Pagination
---------------------------+-----------------------------
 Reporter:  aternus        |      Owner:
     Type:  defect (bug)   |     Status:  new
 Priority:  normal         |  Milestone:  Awaiting Review
Component:  Rewrite Rules  |    Version:  3.3
 Severity:  critical       |   Keywords:
---------------------------+-----------------------------
 With the new rewrite engine in WP3.3 the pagination for pages with
 multilingual URLs got broken.

 See example:
 [http://garage-
 eden.co.il/%D7%97%D7%95%D7%95%D7%AA-%D7%93%D7%A2%D7%AA-%D7%94%D7%9C%D7%A7%D7%95%D7%97%D7%95%D7%AA
 Live Example of Broken Pagination]

 The permalink structure used for this:
 %postname%

 The Code Used for the Page:

 {{{
 <div id="main-content">

 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>

 <h1 class="title"><?php the_title(); ?></h1>

 <?php the_content(); ?>

 <?php endwhile; endif; ?>

 <?php
 // The Query
 $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
 $args = array(
         'category_name' => 'testimonials',
         'paged' => "$paged",
         'posts_per_page' => 3
         );
 query_posts( $args );

 // The Loop
 if (have_posts()) : while (have_posts()) : the_post();
 ?>

 <div id="testimonial-wrap">

 <blockquote>
 <?php the_content(); ?>
 <cite><?php the_title(); ?></cite>
 </blockquote>

 </div>

 <?php endwhile; ?>
 <div id="pagination">
         <?php next_posts_link('<span class="next-page">הבא
 &raquo;</span>') ?>
         <?php previous_posts_link('<span class="prev-page">&laquo;
 הקודם</span>') ?>
 </div>

 <?php endif; wp_reset_query(); ?>

 </div>
 <!-- #main-content -->
 }}}

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/19633>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list