0 points

Query posts via Taxonomy field - ACF Support


dashboard

Thu Nov 12 2020 22:59:58 GMT+0000 (UTC)

Posted by @richard #php

get_posts(array(
    'post_type' => 'quotes',
    'tax_query' => array(
        // get_the_terms() stuff.
    ),
    'order' => 'ASC',
    'posts_per_page' => 5,
    'orderby' => 'rand')
);
?>
content_copy Copy

https://support.advancedcustomfields.com/forums/topic/query-posts-via-taxonomy-field/