Answers for "how get post by category inwp"

PHP
1

get_posts category

$defaults_param = array(
				'numberposts'      	=> -1,
				'post_type'        	=> 'post',
				'category' 			=> 40 ,
				'suppress_filters'	=> false
			);
$get_featured_post = get_posts($defaults_param);
Posted by: Guest on January-04-2021

Code answers related to "how get post by category inwp"

Browse Popular Code Answers by Language