I'm updating a site, I'm trying to limit 12 page posts, but it's not working, could anyone help me?
<section <?php post_class('noticias'); ?>>
<div class="container">
<?php if(term_description($term_id, $taxonomy)): ?>
<div class="descricao">
<?php echo term_description($term_id, $taxonomy); ?>
</div>
<?php endif; ?>
<div class="row">
<div class="col-md-9 ">
<?php query_posts('posts_per_page=>12'); ?>
<?php if (is_category()): ?>
<?php if(have_posts()): ?>
<?php include dirname(__FILE__) . '../../molecules/category.php'; ?>
<?php else : ?>
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('
<p id="breadcrumbs">','</p>
');
}
?>
<br>
<p><i class="fa fa-info-circle"></i> Nenhum post encontrado nesta categoria.</p>
<?php endif; ?>
<?php else: ?>
<?php query_posts('posts_per_page=>12'); ?>
<?php if(have_posts()): while(have_posts()): the_post(); ?>
<?php include dirname(__FILE__) . '../../molecules/post.php'; ?>
<?php endwhile; else : ?>
<?php
if ( function_exists('yoast_breadcrumb') ) {
yoast_breadcrumb('
<p id="breadcrumbs">','</p>
');
}
?>
<br>
<p><i class="fa fa-info-circle"></i> Nenhum post encontrado nesta categoria.</p>
<?php endif; ?>
<?php endif ?>
<?php wp_pagenavi(); ?>
</div>
<div class="col-md-3">
<?php get_sidebar(); ?>
</div>
</div><!-- /.row final linha -->
</div>
</section>