Random loop with code to prevent duplicate output returns no output at all from time to time
The problem is how you’re doing the exclusion. It’s happening after you’ve grabbed your second quote. If it matches the first quote, it just silently fails to appear. Try this for your 2nd block: <blockquote class=”container” style=”color:#1f8665;”> <?php $args = array( ‘post_type’ => ‘quotes’, ‘thesections’ => ‘yoga’, ‘posts_per_page’ => 1, ‘post__not_in’ => array( $do_not_duplicate ), … Read more