4,
'ignore_sticky_posts' => 1,
'post_status' => 'publish',
'no_found_rows' => true,
'tax_query' => array(
array(
// Only show posts with the standard post format
'taxonomy' => 'post_format',
'field' => 'slug',
'terms' => array(
'post-format-aside',
'post-format-audio',
'post-format-chat',
'post-format-link',
'post-format-quote',
'post-format-status',
'post-format-video'
),
'operator' => 'NOT IN'
)
),
);
// Fire the Recent Posts query.
$recent = new WP_Query( apply_filters( 'cakifo_recent_posts_query', $recent_args ) ); // Filter the query with the `cakifo_recent_posts_query` filter
while ( $recent->have_posts() ) : $recent->the_post();
/**
* Put the post ID in an array to make sure it's only showing once
* on the page as this array is used in the headline lists as well.
*/
$GLOBALS['cakifo_do_not_duplicate'][] = get_the_ID();
?>
'Thumbnail',
'size' => 'recent',
'image_class' => 'thumbnail',
'default_image' => THEME_URI . '/images/default-thumb-220-150.png',
)
);
?>
' . __( '[entry-published] by [entry-author]', 'cakifo' ) . '' );
?>