' . get_the_title() . ''; $excerpt = '' . get_the_excerpt() . ''; // Now let's rebuild the output $output = '<' . $inner_wrapper . ' class="' . implode( ' ', $class ) . '">' . $image . $title . $date . $excerpt . $content . ''; // Finally we'll return the modified output return $output; } add_filter( 'display_posts_shortcode_output', 'cf_display_post_modifications', 10, 9 );