-
-
Save billerickson/0c12690e79448d5d5ef01d3cb91f7f63 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Featured post partial | |
* | |
* @package StudyFinds2018 | |
* @author Bill Erickson | |
* @since 1.0.0 | |
* @license GPL-2.0+ | |
**/ | |
echo '<div class="slick-slide">'; | |
echo '<article class="featured-post">'; | |
echo '<div class="entry-content">'; | |
echo '<a class="block-link" href="' . get_permalink() . '"></a>'; | |
echo wp_get_attachment_image( ea_entry_image_id(), 'ea_single' ); | |
echo '<h3 class="entry-title">' . get_the_title() . '</h3>'; | |
echo '</div>'; | |
$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 '</article>'; | |
echo '</div>'; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment