[wp-trac] [WordPress Trac] #23833: Add a unique ID or NAME to target queries .

WordPress Trac noreply at wordpress.org
Thu Mar 21 03:25:19 UTC 2013

#23833: Add a unique ID or NAME to target queries .
 Reporter:  krembo99     |       Owner:
     Type:  enhancement  |      Status:  new
 Priority:  normal       |   Milestone:  Awaiting Review
Component:  Query        |     Version:
 Severity:  normal       |  Resolution:
 Keywords:               |

Comment (by krembo99):

 Add examples :

 right now we can assign a local var to the query
 $my_query = new WP_Query($args)
 while($my_query->have_posts()) {
       // Loop in here
 but changing it to

 $my_query = new WP_Query('my_query_id',$args)

 will give an aditional layer to be used by third party developers (and
 self in a later stage)

Ticket URL: <http://core.trac.wordpress.org/ticket/23833#comment:1>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software

More information about the wp-trac mailing list