[wp-trac] [WordPress Trac] #13840: $Paged Won't Set On Index When Static Page Is Set

WordPress Trac wp-trac at lists.automattic.com
Fri Jun 11 17:57:00 UTC 2010


#13840: $Paged Won't Set On Index When Static Page Is Set
--------------------------+-------------------------------------------------
 Reporter:  tehfab1       |       Owner:       
     Type:  defect (bug)  |      Status:  new  
 Priority:  normal        |   Milestone:  3.0  
Component:  Query         |     Version:  3.0  
 Severity:  normal        |    Keywords:  close
--------------------------+-------------------------------------------------

Comment(by tehfab1):

 This is a simple code snippet I wrote after the discussion last night
 which should help anyone trying to get a static front page to paginate
 over a loop of posts:

 global $paged, $page;
 if (is_front_page()) {
         $paged = $page;
 }

 query_posts('paged='$paged);

 Thanks again Nacin. Saved the day for me :).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/13840#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list