Advertisement
Guest User

Relevanssi errors

a guest
Sep 20th, 2016
250
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.74 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <div id="content">
  4.  
  5. <div id="inner-content" class="wrap cf">
  6.  
  7. <main id="main" class="m-all t-2of3 d-5of7 cf" role="main">
  8. <h1 class="archive-title"><span><?php _e( 'Search Results for:', 'bonestheme' ); ?></span> <?php echo esc_attr(get_search_query()); ?></h1>
  9.  
  10. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  11.  
  12. <article id="post-<?php the_ID(); ?>" <?php post_class('cf'); ?> role="article">
  13.  
  14. <header class="entry-header article-header">
  15.  
  16. <h3 class="search-title entry-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
  17.  
  18. <p class="byline entry-meta vcard">
  19. <?php printf( __( 'Posted %1$s by %2$s', 'bonestheme' ),
  20. /* the time the post was published */
  21. '<time class="updated entry-time" datetime="' . get_the_time('Y-m-d') . '" itemprop="datePublished">' . get_the_time(get_option('date_format')) . '</time>',
  22. /* the author of the post */
  23. '<span class="by">by</span> <span class="entry-author author" itemprop="author" itemscope itemptype="http://schema.org/Person">' . get_the_author_link( get_the_author_meta( 'ID' ) ) . '</span>'
  24. ); ?>
  25. </p>
  26.  
  27. </header>
  28.  
  29. <section class="entry-content">
  30. <?php the_excerpt( '<span class="read-more">' . __( 'Read more &raquo;', 'bonestheme' ) . '</span>' ); ?>
  31.  
  32. </section>
  33.  
  34. <footer class="article-footer">
  35.  
  36. <?php if(get_the_category_list(', ') != ''): ?>
  37.  
  38. <?php endif; ?>
  39.  
  40. <?php the_tags( '<p class="tags"><span class="tags-title">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '</p>' ); ?>
  41.  
  42. </footer> <!-- end article footer -->
  43.  
  44. </article>
  45.  
  46. <?php endwhile; ?>
  47.  
  48. <?php bones_page_navi(); ?>
  49.  
  50. <?php else : ?>
  51.  
  52. <article id="post-not-found" class="hentry cf">
  53. <header class="article-header">
  54. <h1><?php _e( 'Sorry, No Results.', 'bonestheme' ); ?></h1>
  55. </header>
  56. <section class="entry-content">
  57. <p><?php _e( 'Try your search again.', 'bonestheme' ); ?></p>
  58. </section>
  59. <footer class="article-footer">
  60. <p><?php _e( 'This is the error message in the search.php template.', 'bonestheme' ); ?></p>
  61. </footer>
  62. </article>
  63.  
  64. <?php endif; ?>
  65.  
  66. </main>
  67.  
  68. <?php get_sidebar(); ?>
  69.  
  70. </div>
  71.  
  72. </div>
  73.  
  74. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement