WordPress.org

Make WordPress Core

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


Ignore:
Timestamp:
01/08/2011 12:44:52 PM (9 years ago)
Author:
linuxologos
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14892, comment 11

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