Or, embed this snippet using GenerateWP WordPress Plugin.

Download

Clone

Categoria

Mostrar Cartegoria

// WP_Query arguments
$args = array (
	'cat'                    => '1',
	'category_name'          => 'uncategorized',
);

// The Query
categoria = new WP_Query( $args );

// The Loop
if ( categoria->have_posts() ) {
	while ( categoria->have_posts() ) {
		categoria->the_post();
		// do something
	}
} else {
	// no posts found
}

// Restore original Post Data
wp_reset_postdata();