WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #14892, comment 11


Ignore:
Timestamp:
01/08/11 12:45:41 (3 years ago)
Author:
linuxologos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14892, comment 11

    v1 v2  
    44 
    55{{{ 
    6 query_posts( array( 'category__in' => $cat_id ) ) 
     6query_posts( array( 'category__in' => 1 ) ) 
    77}}} 
    88but it does not, returning unexpected posts and the already mentioned warning: 
     
    1414 
    1515{{{ 
    16 query_posts( array( 'category__in' => (array)$cat_id ) ) or 
    17 query_posts( array( 'category__in' => array($cat_id) ) ) 
     16query_posts( array( 'category__in' => (array)1 ) ) or 
     17query_posts( array( 'category__in' => array(1) ) ) 
    1818}}} 
    1919