content-search.php 780 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Template part for displaying results in search pages.
  4. *
  5. * @link https://codex.wordpress.org/Template_Hierarchy
  6. *
  7. * @package Akina
  8. */
  9. ?>
  10. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  11. <header class="entry-header">
  12. <?php the_title( sprintf( '<h2 class="entry-title"><a href="%s" rel="bookmark">', esc_url( get_permalink() ) ), '</a></h2>' ); ?>
  13. <?php if ( 'post' === get_post_type() ) : ?>
  14. <div class="entry-meta">
  15. <?php akina_posted_on(); ?>
  16. </div><!-- .entry-meta -->
  17. <?php endif; ?>
  18. </header><!-- .entry-header -->
  19. <div class="entry-summary">
  20. <?php the_excerpt(); ?>
  21. </div><!-- .entry-summary -->
  22. <footer class="entry-footer">
  23. <?php akina_entry_footer(); ?>
  24. </footer><!-- .entry-footer -->
  25. </article><!-- #post-## -->