Guest User

content-search.php

a guest
Oct 8th, 2020
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. <?php
  2. /**
  3. * Template part for displaying results in search pages
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Catch_Revolution
  8. */
  9.  
  10. ?>
  11.  
  12. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  13. <div class="post-wrapper hentry-inner">
  14. <?php catch_revolution_archive_image(); ?>
  15.  
  16. <div class="entry-container">
  17. <header class="entry-header">
  18. <?php if ( 'post' === get_post_type() ) : ?>
  19. <div class="entry-meta">
  20. <?php catch_revolution_posted_on(); ?>
  21. </div><!-- .entry-meta -->
  22. <?php endif; ?>
  23.  
  24. <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  25. </header><!-- .entry-header -->
  26.  
  27. <div class="entry-summary">
  28. <?php the_excerpt(); ?>
  29. </div><!-- .entry-summary -->
  30. </div><!-- .entry-container -->
  31. </div><!-- .hentry-inner -->
  32. </article><!-- #post-<?php the_ID(); ?> -->
  33.  
Add Comment
Please, Sign In to add comment