WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #15995, comment 2


Ignore:
Timestamp:
12/27/2010 02:43:28 PM (11 years ago)
Author:
bowstreet
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #15995, comment 2

    v1 v2  
    11Seems it has to do with meta_key and meta_value I'm using.
    2 
    3 {{{
    4         $feature_query = new WP_Query(
    5                 array(
    6             'post_type' => array(
    7                 'post',
    8                 'issues',
    9                 'videos',
    10             ),
    11                 'meta_key' => 'sticky',
    12                 'meta_compare' => '=',
    13                 'meta_value' => 'yes',
    14                 'orderby' => 'modified',
    15                 'order'=>'ASC' )
    16         );
    17                
    18                 var_dump($feature_query);
    19 
    20         if ( $feature_query->have_posts() ):
    21             while( $feature_query->have_posts() ) : $feature_query->the_post();
    22 }}}
    23