3 * The template part for displaying a message that posts cannot be found
5 * Learn more: {@link https://codex.wordpress.org/Template_Hierarchy}
8 * @subpackage Twenty_Fifteen
9 * @since Twenty Fifteen 1.0
13 <section class="no-results not-found">
14 <header class="page-header">
15 <h1 class="page-title"><?php _e( 'Nothing Found', 'twentyfifteen' ); ?></h1>
16 </header><!-- .page-header -->
18 <div class="page-content">
20 <?php if ( is_home() && current_user_can( 'publish_posts' ) ) : ?>
22 <p><?php printf( __( 'Ready to publish your first post? <a href="%1$s">Get started here</a>.', 'twentyfifteen' ), esc_url( admin_url( 'post-new.php' ) ) ); ?></p>
24 <?php elseif ( is_search() ) : ?>
26 <p><?php _e( 'Sorry, but nothing matched your search terms. Please try again with some different keywords.', 'twentyfifteen' ); ?></p>
27 <?php get_search_form(); ?>
31 <p><?php _e( 'It seems we can’t find what you’re looking for. Perhaps searching can help.', 'twentyfifteen' ); ?></p>
32 <?php get_search_form(); ?>
36 </div><!-- .page-content -->
37 </section><!-- .no-results -->