Suporte » Plugins » PageNavi Não Estou Conseguindo Paginar…

  • Resolvido edluso

    (@edluso)


    Olá.
    Estou tentando usar o pagenavi no page.php, porém não estou conseguindo.
    O wordpress está setado para mostrar 10 posts e o pagenavi apesar de ativados e configurado ( linha inserida), não parece no final dos posts, ou seja, não faz a paginação.
    Se deixar o wordpress para mostrar, por exemplo, 4 posts, o pagenavi aparece, porém não pagina pois o wordpress está configurado para exibir apenas 4 posts.
    Abaixo segue código e peço a ajuda de vcs.
    Muito obrigado.
    [edluso]

    <div id="content_blog_left_bottom_right">
    	<?php query_posts('showposts', 'orderby'); ?>
    		<?php if (have_posts()): while (have_posts()) : the_post();?>
    			<small><?php the_time('j M Y'); ?> | <?php if(function_exists('the_views')){the_views();} ?></a></small>
    			<img src="<?php echo get_option('home');?>/<?php $key="images";echo get_post_meta($post->ID,$key,true);?>" title="<?php the_title();?>" alt="<?php the_title();?>" width="150px" height="75px">
    			<h3><a href="<?php the_Permalink() ?>" title="<?php the_title(); ?>"alt="<?php the_title(); ?>"><?php the_title(); ?></a></h3>
    			<p><?php the_excerpt_rereloaded(40); ?></p>
    		<?php endwhile;
    			else:?>
    		<?php endif;?>
    		<?php if(function_exists('wp_pagenavi')) {wp_pagenavi();}?><br />
    </div>

Visualizando 1 resposta (de um total de 1)
  • Criador do tópico edluso

    (@edluso)

    Resolvido.

    Substitui:
    <?php query_posts('showposts', 'orderby'); ?>

    Por:
    <?php query_posts('cat=-' .$id .'&paged='.$paged); ?>

    Grato pela atenção.

Visualizando 1 resposta (de um total de 1)
  • O tópico ‘PageNavi Não Estou Conseguindo Paginar…’ está fechado para novas respostas.