content-featured-post.php 626 B

12345678910111213141516171819202122232425
  1. <?php
  2. /**
  3. * The template for displaying featured posts on the front page
  4. *
  5. * @package Canard
  6. */
  7. ?>
  8. <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  9. <a class="post-thumbnail" href="<?php the_permalink(); ?>">
  10. <?php
  11. // Output the featured image.
  12. if ( has_post_thumbnail() ) {
  13. the_post_thumbnail( 'canard-featured-content-thumbnail' );
  14. }
  15. ?>
  16. </a>
  17. <header class="entry-header">
  18. <?php
  19. canard_entry_categories();
  20. the_title( '<h1 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">','</a></h1>' );
  21. ?>
  22. </header><!-- .entry-header -->
  23. </article><!-- #post-## -->