Respostas no Fórum

Visualizando 1 resposta (de um total de 1)
  • Fórum: Plugins
    Em resposta a: Pagenavi não muda de página

    Olá, estou com o mesmo erro, porém o código é diferente, olhem só:

    <?php $homepage=false;
    if (is_home()) {
    	if (get_option('glow_duplicate') == 'false') {
    		$args=array(
    		   'showposts'=>get_option('glow_homepage_posts'),
    		   'post__not_in' => $ids,
    		   'paged'=>$paged,
    		   'category__not_in' => get_option('glow_exlcats_recent'),
    		);
    	} else {
    		$args=array(
    		   'showposts'=>get_option('glow_homepage_posts'),
    		   'paged'=>$paged,
    		   'category__not_in' => get_option('glow_exlcats_recent'),
    		);
    	};
    	$homepage=true;
    
    query_posts($args);
    } else {
    	if (is_archive()) $post_number = get_option('glow_archivenum_posts');
    	if (is_search()) $post_number = get_option('glow_searchnum_posts');
    	if (is_tag()) $post_number = get_option('glow_tagnum_posts');
    	if (is_category()) $post_number = get_option('glow_catnum_posts');
    	global $query_string; query_posts($query_string . "&showposts=$post_number&paged=$paged");
    }
    
    if (have_posts()) : while (have_posts()) : the_post(); ?>
    
    <?php $thumb = get_post_meta($post->ID, 'Thumbnail', $single = true); ?>
    <?php if (($thumb == '') && ($glow_grab_image == 'on')) $thumb = catch_that_image(); ?>
    		<div class="post blogstyle<?php if (!($homepage)) echo(" indexpage"); ?>">
    			<div class="new-post">
    				<?php if (get_option('glow_postinfo1_show') == 'on') include(TEMPLATEPATH . '/includes/postinfo.php'); ?>
    				<h2><a href="<?php the_permalink() ?>" title="<?php printf(__ ('Ir para %s', 'Glow'), get_the_title()) ?>"><?php the_title(); ?></a></h2>
                    <?php if (get_option('glow_thumbnails') == 'on') { ?>
    				<?php if ($thumb != '') { ?>
    				<a href="<?php the_permalink() ?>" title="<?php printf(__ ('Ir para %s', 'Glow'), get_the_title()) ?>"><img src="<?php bloginfo('stylesheet_directory'); ?>/timthumb.php?src=<?php echo $thumb; ?>&h=156&w=156&zc=1" alt="<?php echo(the_title()); ?>" class="thumbnail alignleft" /></a>
                   <?php };}; ?>
    				<p><?php the_content(""); ?></p>
    				<a href="<?php the_permalink() ?>" class="readmore"><span><?php _e('Leia mais','Glow'); ?></span></a>
    				<div class="clear"></div>
    			</div> <!-- end new-post -->
    		</div> <!-- end post -->
    <?php endwhile; ?>
    
    <div class="clear"></div>
    
    	<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
    	else { ?>
    	<div class="pagination">
    		<div class="alignleft"><?php next_posts_link(__('&laquo; Older Entries','Glow')) ?></div>
    		<div class="alignright"><?php previous_posts_link(__('Next Entries &raquo;', 'Glow')) ?></div>
    	</div>
    	<?php } ?>
    <?php else : ?>
    	<?php include(TEMPLATEPATH . '/includes/no-results.php'); ?>
    <?php endif; wp_reset_query(); ?>

    E, observando a barra de endereço, acontece o seguinte:

    http://www.site.com/blog/page/2/ e não funciona.

    Porém, ao trocar os “permalinks” http://www.site.com/blog/?paged=2/ aí funciona.

    Tô maluco nisso.

Visualizando 1 resposta (de um total de 1)