Mostrar dos post_type pero filtrar uno por categoria
-
Quiero mostrar las entradas de dos post_type pero al mostrarlo no me aparece ningun post del post_type –> ‘sectorial’ porque no pertenece a esa categoria, como puedo hacer un filtro para que solo aplique la categoria a las entradas con post_type = post ?
Thanks!!
Este es el codigo:«»
<?php
$args = array(
‘post_type’ => array(‘post’,’sectorial’),
‘showposts’ => 10,
‘category_name’ => ‘categoria’,
‘paged’ => $paged
);query_posts($args);
?><?php if (have_posts()) : while (have_posts()) : the_post(); ?>
<article>
<p><?php the_title(); ?></p>
</article>
<?php endwhile; ?><?php endif; ?>
«»
- El debate ‘Mostrar dos post_type pero filtrar uno por categoria’ está cerrado a nuevas respuestas.