A grid of 5 posts with the latest one at the left.

Featured image and excerpt have been set to be output only for the first post to feature it.

Uses a single query loop.

Uses variables from ACSS.

Add this code in child theme’s functions.php or a code snippets plugin:

/**
 * Get the current loop index
 */
if ( ! function_exists( 'bl_get_loop_index' ) ) {
    function bl_get_loop_index(): ?int {
        $index = intval( Bricks\Query::get_loop_index() ) + 1;

        if ( $index ) return $index;
    }
}

Ensure that this condition is present on Image and Excerpt elements:

What gets copied: Section.

Latest News

Click to Copy