Changes between Version 1 and Version 2 of Ticket #14892, comment 11
- Timestamp:
- 01/08/2011 12:45:41 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #14892, comment 11
v1 v2 4 4 5 5 {{{ 6 query_posts( array( 'category__in' => $cat_id) )6 query_posts( array( 'category__in' => 1 ) ) 7 7 }}} 8 8 but it does not, returning unexpected posts and the already mentioned warning: … … 14 14 15 15 {{{ 16 query_posts( array( 'category__in' => (array) $cat_id) ) or17 query_posts( array( 'category__in' => array( $cat_id) ) )16 query_posts( array( 'category__in' => (array)1 ) ) or 17 query_posts( array( 'category__in' => array(1) ) ) 18 18 }}} 19 19