title: WordPress Sticky Post on Homepage only
body: <p>Trying to get a hero area up on my clients home display the most recent sticky post, but I keep seeming to hit a snag. Error right at the end of the code which is making me get the white screen on death. Here's my code:</p>
  
  <pre><code>&lt;?php if (is_home()) {
              $sticky = get_option( 'sticky_posts' ); // Get all sticky posts
              rsort( $sticky ); // Sort the stickies, latest first
              $sticky = array_slice( $sticky, 0, 1 ); // Number of stickies to show
              query_posts( array( 'post__in' =&gt; $sticky, 'caller_get_posts' =&gt; 1 ) ); // The query
              if (have_posts() ) { while ( have_posts() ) : the_post(); ?&gt;
              &lt;div class="trend-post"&gt;
              &lt;div class="thumb"&gt;&lt;?php the_post_thumbnail(); ?&gt;&lt;/div&gt;
              &lt;div class="title"&gt;&lt;a href="&lt;?php the_permalink() ?&gt;"&gt;&lt;?php the_title(); ?&gt;&lt;/a&gt;&lt;/div&gt;&lt;/div&gt;
              &lt;?php endwhile;?&gt;
              &lt;?php wp_reset_query()?&gt;
          }
  ?&gt;
  </code></pre>