[wp-trac] [WordPress Trac] #37056: paginate_links should be a method on WP_Query

WordPress Trac noreply at wordpress.org
Fri Dec 2 20:14:23 UTC 2016


#37056: paginate_links should be a method on WP_Query
-------------------------+------------------------------
 Reporter:  jfarthing84  |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:  4.6
 Severity:  normal       |  Resolution:
 Keywords:               |     Focuses:
-------------------------+------------------------------

Comment (by GunGeekATX):

 You can pass total and current to `paginate_links()` to bypass WP_Query
 vars.

 Example:
 {{{
 paginate_links( array( 'current' => 2, 'total' => 18, ' ) );
 }}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/37056#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list