I'm going to have a select with 3 categories, every time I change the value of select it changes the result of lop Example:
<select>
<option value="Noticias">Noticias</option>
<option value="Shopping">Saab</option>
<option value="Musica">Musica</option>
</select>
<section class="container">
<div class="list_article" role="carousel">
<?php $args = array(
'post_type'=>'novidades',
'numberposts'=> 3
);
$counter = 0;
$my_posts = get_posts($args);
if( $my_posts ): foreach( $my_posts as $post ) : setup_postdata($post); ; $counter++ ?>
<article class="_card">
<a href="<?php the_permalink() ?>">
<h3><?php the_title() ?></h3>
</a>
</article>
<?php
wp_reset_query();
endforeach; else: ?>
<p>Nada encontrado.</p>
<?php endif; ?>
</div>
<hr>
</section><!-- end container -->