Custom Snippet

Use this tool to share WordPress snippets with the community.

  Save Snippet
// Enable line break in excerpt using Views plugin
remove_shortcode('wpv-post-excerpt');
add_shortcode('wpv-post-excerpt', 'get_the_excerpt');
add_filter( 'get_the_excerpt', 'wpautop'  );