get_posts(array( 'post_type' => 'quotes', 'tax_query' => array( // get_the_terms() stuff. ), 'order' => 'ASC', 'posts_per_page' => 5, 'orderby' => 'rand') ); ?>
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter