Sustratos, abonos y fertilizantes
$args = [
'cat' => get_queried_object()->term_id,
'posts_per_page' => 12,
'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1 ),
];
$query = new WP_Query( $args );
?>
if ( $query->have_posts() ) : ?>
while ( $query->have_posts() ) : $query->the_post(); ?>
get_template_part( 'template-parts/ficha','noticia-new',array('id_noticia'=>get_the_ID(), 'categoria' => $catIdImg)); ?>
endwhile; ?>
endif; ?>
the_posts_pagination(
[
'mid_size' => 3,
'prev_text' => __( '<< Anterior', 'esgalla' ),
'next_text' => __( 'Siguiente >>', 'esgalla' ),
]
);
?>
_e("Encuentra un artículo","esgalla") ?>
_e("Elige una categoría","esgalla") ?>
$catsPrincipales = get_categories([
'parent' => 0,
]);
$catsPrincipalesIds = [];
?>