title: How do I get random excerpts to show in WordPress?
body: <p>Good morning, I been trying to get an excerpt of a post to show random post excerpts on the homepage with no luck. My code looks like this: </p>
  
  <pre><code>    &lt;?php
          $spotlight  = new WP_Query( array( 'post_type' =&gt; 'success-spotlight', 'posts_per_page' =&gt; 1,       'orderby' =&gt; 'rand' ) );
  while ( $spotlight-&gt;have_posts() ) : $spotlight-&gt;the_post();
      $spotlight_title = get_the_title();
      $spotlight_excerpt = types_render_field("story-headline", array("raw"=&gt;"true"));
      $spotlight_link = get_permalink();
      if (has_post_thumbnail()) {
          $thumb = wp_get_attachment_image_src(get_post_thumbnail_id(), 'spiffy-success-spotlight-`home');
          $spotlight_image = $thumb[0]; // thumbnail url
      }
  
  
  endwhile; 
  wp_reset_postdata();
  ?&gt;
  &lt;?php
  
  ?&gt;
  </code></pre>
  
  <p>Any suggestions would be greatly appreciated and thank you in advance</p>