WordPress.org

Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #16910


Ignore:
Timestamp:
03/21/11 01:05:54 (4 years ago)
Author:
scribu
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #16910

    • Property Keywords 2nd-opinion removed
  • Ticket #16910 – Description

    initial v1  
    5050}}} 
    5151 
    52 $country_ids would now be a WP_Lazy_Query object, which would just contain the subquery SQL. It would be appended to the second query, when needed. 
     52$country_ids would now be a WP_Lazy_Query object, which would just contain the subquery SQL. It would be appended to the second query, when needed: 
     53 
     542) Get all the cities belonging to that country: 
     55 
     56{{{ 
     57$cities = get_posts( array( 
     58  'post_type' => 'city', 
     59  'post_parent__in' => $country_ids 
     60) ); 
     61}}}