[wp-trac] [WordPress Trac] #48193: Improve the WordPress loop

WordPress Trac noreply at wordpress.org
Tue Oct 1 18:53:58 UTC 2019


#48193: Improve the WordPress loop
-------------------------+------------------------------------
 Reporter:  wpscholar    |      Owner:  (none)
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  Query        |    Version:  trunk
 Severity:  normal       |   Keywords:  has-patch dev-feedback
  Focuses:               |
-------------------------+------------------------------------
 Currently, there are a number of ways that the "loop" can be handled in
 WordPress. Each depends on whether you are using the WP_Query global, a
 custom WP_Query instance, or an array of posts.

 I propose that we add a PHP 5.6+ compatible generator function called
 `wp_loop()` that will simplify all of these use cases into a single, more
 modern approach. See [https://wpscholar.com/blog/creating-better-
 wordpress-loop/]

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/48193>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list