You can use get_posts
(Method: get_posts) which returns posts according to WordPress WP_Query parameters and then pass parameters for category and search keyword in cat
and s
params respectively.
You can use get_posts
(Method: get_posts) which returns posts according to WordPress WP_Query parameters and then pass parameters for category and search keyword in cat
and s
params respectively.