4, // Show 4 posts 'ignore_sticky_posts' => 1, 'post_status' => 'publish', 'no_found_rows' => true, 'tax_query' => array( array( // Exclude posts with the Aside, Link, Quote, and Status format 'taxonomy' => 'post_format', 'terms' => array( 'post-format-aside', 'post-format-link', 'post-format-quote', 'post-format-status' ), 'field' => 'slug', 'operator' => 'NOT IN', ) ), ); // Our query for the Recent Posts section $recent = new WP_Query( $recent_args ); $i = 0; while ( $recent->have_posts() ) : $recent->the_post(); // Put the post ID in an array to make sure it's only showing once (this array is used in the headline lists as well) $GLOBALS['cakifo_do_not_duplicate'][] = $post->ID; ?>
'Thumbnail', 'size' => 'recent', 'image_class' => 'thumbnail', 'height' => apply_filters( 'cakifo_recent_image_height', '130' ), 'default_image' => THEME_URI . '/images/default-thumb-190-130.gif' ) ); ?>
post_type ) . '-title entry-title">', '', false ) ); /* Entry meta */ echo apply_atomic_shortcode( 'recent_posts_meta', '' . __( '[entry-published] by [entry-author]', 'cakifo' ) . '' ); ?>
' . __( 'Continue reading »', 'cakifo' ) . ''; echo wp_trim_words( get_the_excerpt(), 20, $more_link ); ?>