Answers for "wordpress get category posts"

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
1

get category post in wordpress

echo '<p>'. get_the_category( $id )[0]->name .'</p>';
Posted by: Guest on October-18-2021

Code answers related to "wordpress get category posts"

Browse Popular Code Answers by Language