Skip to content

Instantly share code, notes, and snippets.

@billerickson
Last active October 24, 2018 21:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save billerickson/d7752027be798219ec25196c951a351c to your computer and use it in GitHub Desktop.
Save billerickson/d7752027be798219ec25196c951a351c to your computer and use it in GitHub Desktop.
<?php
/**
* Archive partial
*
* @package EAGenesisChild
* @author Bill Erickson
* @since 1.0.0
* @license GPL-2.0+
**/
echo '<article class="post-summary">';
echo '<a class="entry-image-link" href="' . get_permalink() . '" tabindex="-1" aria-hidden="true">' . get_the_post_thumbnail( get_the_ID(), 'medium' ) . '</a>';
echo '<header class="entry-header">';
echo '<h2 class="entry-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
echo '</header>';
echo '<div class="entry-content">';
the_excerpt();
echo '<p><a class="read-more" href="' . get_permalink() . '" tabindex="-1" aria-hidden="true">Read More<span class="screen-reader-text"> of ' . get_the_title() . '</span></a></p>';
echo '</div>';
echo '</article>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment