Wordpress_PostController icon indicating copy to clipboard operation
Wordpress_PostController copied to clipboard

Usig Search with IF statement

Open WPThemer opened this issue 7 years ago • 0 comments

How can we know if the post in search is found.. something like:

		if($Poster->search('slug', 'blah blah')) {
			echo 'yeh.. slug found !!';
		} else
		  echo 'not found....';

How can this be achieved.

regards

WPThemer avatar Jul 13 '18 18:07 WPThemer