Skip to content

Snippet: Change the “No Posts Found” Notice

The Post Cards element has a built-in setting that allows you to change this on a per-element basis.
add_filter( 'vcex_no_posts_found_message', function( $message, $atts ) {
	return 'Your custom no posts found message or HTML here.';
}, 10, 2 );
All PHP snippets should be added via child theme's functions.php file or via a plugin. We recommend Code Snippets (100% Free) or WPCode (sponsored)
Back To Top