title: Random entries Custom Post within last 2 weeks
body: <p>I'm trying to get random entries from custom type and custom taxonomy within the last 2 weeks...<br>
  The problem is it always show the same 3 entries. I have around 10 entries in total, so I'd like it to show random ones from those 10 every time page refreshes or a person goes to another page. </p>
  
  <pre><code>$args = array(
      'post_type' =&gt; 'country',
      'post_status' =&gt; 'publish',
      'orderby' =&gt; 'rand',
      'posts_per_page' =&gt; '3', 
      'date_query' =&gt; array( array( 'after' =&gt; '2 weeks ago' ) ),     
      'tax_query' =&gt; array(
          array(
              'taxonomy' =&gt; 'country_categories',
              'field' =&gt; 'id',
              'terms' =&gt; '25'
          )
      )        
  );
  
  $my_query = new WP_Query( $args );
  
  if ( $my_query-&gt;have_posts() ) :
  
      while ( $my_query-&gt;have_posts() ) : $my_query-&gt;the_post();
  
          echo '&lt;p&gt;&lt;a href="'.get_the_permalink().'"&gt;'. get_the_title() .'&lt;/a&gt;&lt;/p&gt;';
  
      endwhile;
  
  endif;
  
  wp_reset_postdata();
  </code></pre>