Contenu connexe
Similaire à WP_Query Overview (20)
WP_Query Overview
- 4. The values in this array are used within the WP_Query->get_posts() method to build the final SQL query
- 6. Also used within the WP_Query->get_posts() method to assign defaults for required/unset query_vars
- 30. Example: function filter_where($where, $wp_query) { if(!is_admin() && ($wp_query->get('post_type') == 'background')) { $cur_time = time(); $where.= " AND (EndDate.meta_value is null OR EndDate.meta_value >= '$cur_time'; } return $where; }