• Resolved jarvsodesign

    (@jarvsodesign)


    Hi. I have som custom fields on my posts that i would like to have in the query. Is there a way to enter some meta_query data into the $args array? Such as

    
    $args = array( 
        'limit' => 4,
        'range' => 'monthly',
        'meta_query' => array(
                    array(
                        'key'     => 'active_customer',
                        'value'   => '0',
                    ),
                    array(
                        'key'     => '_thumbnail_id',
                        'compare'   => 'EXISTS',
                    ),
            
                ),
    );
    

    Regards
    Anders

    • This topic was modified 9 years, 8 months ago by jarvsodesign.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Custom query?’ is closed to new replies.