Advertisement
dakjohnson

Blog Post Title Not Showing

Jun 8th, 2012
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. get_header(); ?>
  2.  
  3. <div id="primary">
  4. <div id="content" role="main">
  5.  
  6. <?php if ( have_posts() ) : ?>
  7.  
  8. <?php twentyeleven_content_nav( 'nav-above' ); ?>
  9.  
  10. <?php /* Start the Loop */ ?>
  11. <?php while ( have_posts() ) : the_post(); ?>
  12.  
  13. <?php get_template_part( 'content', get_post_format() ); ?>
  14.  
  15. <?php endwhile; ?>
  16.  
  17. <?php twentyeleven_content_nav( 'nav-below' ); ?>
  18.  
  19. <?php else : ?>
  20.  
  21. <article id="post-0" class="post no-results not-found">
  22. <header class="entry-header">
  23. <h1 class="entry-title"><?php _e( 'Nothing Found', 'twentyeleven' ); ?></h1>
  24. </header><!-- .entry-header -->
  25.  
  26. <div class="entry-content">
  27. <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'twentyeleven' ); ?></p>
  28. <?php get_search_form(); ?>
  29. </div><!-- .entry-content -->
  30. </article><!-- #post-0 -->
  31.  
  32. <?php endif; ?>
  33.  
  34. </div><!-- #content -->
  35. </div><!-- #primary -->
  36.  
  37. <?php get_sidebar(); ?>
  38. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement