'; wmhook_postslist_top(); while ( have_posts() ) : the_post(); $output = '
'; $output .= '

'; if ( has_post_thumbnail() ) { $thumb_size = 'admin-thumbnail'; $output .= ''; $output .= get_the_post_thumbnail( get_the_ID(), $thumb_size ); $output .= ''; } $output .= ''; $output .= get_the_title(); $output .= ''; $output .= '

'; $output .= wm_excerpt(); $output .= ( 'page' === get_post_type() ) ? ( wm_post_meta( apply_filters( 'wmhook_search_page_meta', array( 'meta' => array( 'permalink' ) ) ) ) ) : ( wm_post_meta() ); $output .= '
'; echo $output; endwhile; wmhook_postslist_bottom(); echo ''; wmhook_postslist_after(); } else { wm_not_found(); } wp_reset_query();