Skip to content

Instantly share code, notes, and snippets.

@billerickson
Created July 19, 2018 16:58
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/3623a8cb35aa09cbf75cae7d1946cf01 to your computer and use it in GitHub Desktop.
Save billerickson/3623a8cb35aa09cbf75cae7d1946cf01 to your computer and use it in GitHub Desktop.
<?php
/**
* Archive partial
*
* @package StudyFinds2018
* @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() . '">' . wp_get_attachment_image( ea_entry_image_id(), 'ea_archive' ) . '</a>';
$term = ea_first_term();
$category = '<a class="entry-category-link" href="' . get_term_link( $term, 'category' ) . '">' . $term->name . '</a>';
echo '<div class="entry-info">' . $category . ea_archive_sharing() . '</div>';
echo '<h2 class="entry-title"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2>';
echo '</article>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment