Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
26 lines (21 sloc) 640 Bytes
<?php
/**
* Search result partial
*
* @package EAGenesisChild
* @author Bill Erickson
* @since 1.0.0
* @license GPL-2.0+
**/
echo '<article class="search-result">';
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">';
$excerpt = get_the_excerpt();
if( empty( $excerpt ) )
$excerpt = get_post_meta( get_the_ID(), '_yoast_wpseo_metadesc', true );
if( !empty( $excerpt ) )
echo apply_filters( 'the_excerpt', $excerpt );
echo '</div>';
echo '</article>';
You can’t perform that action at this time.