1 ) { $post_loop_count = ( (int)( $page - 1 ) * (int) get_query_var( 'posts_per_page' ) ) + 1; } $blog_style = avia_get_option( 'blog_style', 'multi-big' ); while( have_posts() ) { the_post(); $the_id = get_the_ID(); $parity = $post_loop_count % 2 ? 'odd' : 'even'; $last = count( $wp_query->posts ) == $post_loop_count ? ' post-entry-last ' : ''; $post_class = "post-entry-{$the_id} post-loop-{$post_loop_count} post-parity-{$parity} {$last} {$blog_style}"; $post_format = get_post_format() ? get_post_format() : 'standard'; ?>
'entry' ) ); ?>>
{$post_loop_count}"; // the next lines are new and will insert the featured image - source is here the large image-size $searchimage = get_the_post_thumbnail( $the_id, 'square' ); if( ! empty( $searchimage ) ) { echo "{$searchimage}"; } $default_heading = 'h2'; $args = array( 'heading' => $default_heading, 'extra_class' => '' ); /** * @since 4.5.5 * @return array */ $args = apply_filters( 'avf_customize_heading_settings', $args, 'loop_search', array() ); $heading = ! empty( $args['heading'] ) ? $args['heading'] : $default_heading; $css = ! empty( $args['extra_class'] ) ? $args['extra_class'] : ''; //echo the post title $markup = avia_markup_helper(array('context' => 'entry_title','echo'=>false)); echo "<{$heading} class='post-title entry-title {$css}'>" . get_the_title() . ""; echo ''; echo '
'; echo '
'entry_content','echo' => false ) ) . '>'; $excerpt = trim( get_the_excerpt() ); if( ! empty( $excerpt ) ) { the_excerpt(); } else { $excerpt = strip_shortcodes( get_the_content() ); $excerpt = apply_filters( 'the_excerpt', $excerpt ); $excerpt = str_replace( ']]>', ']]>', $excerpt ); echo $excerpt; } echo '
'; echo '
'; echo ''; do_action('ava_after_content', $the_id, 'loop-search' ); echo '
'; $first = false; $post_loop_count++; if( $post_loop_count >= 100 ) { $counterclass = 'nowidth'; } } } else { ?>

'entry_content' ) ); ?>>

'; echo '
'; } echo avia_pagination( '', 'nav' );