Answers for "wordpress get_posts custom posts by meta key"

0

wordpress get_posts custom posts by meta key

/* Query args. */
$args = array(
    'post_type' => 'reviews',
    'posts_per_page' => -1,
    'meta_key' => 'location', 
    'meta_value' => 'berkshire'
);

/* Get Reviews */
$reviews = get_posts( $args );
Posted by: Guest on July-02-2021

Code answers related to "wordpress get_posts custom posts by meta key"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language