Eu desenvolvi um site com o wordpress e em uma das páginas eu coloquei um blog no com o seguinte código:
<?php
/*
Template Name: Blog
*/
?>
<?php get_header(); ?>
<div id="content-padding">
<div id="content">
<?php query_posts('cat=102');?>
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
<div class="post" id="post-<?php the_ID(); ?>">
<table id="post-head">
<tr>
<td id="head-date">
<div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
</td>
<td>
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<div class="postdata"><span class="category"><?php the_category(', ') ?></span> <span class="comments"><?php comments_popup_link('Nenhum Comentário »', '1 Comentário »', '% Comentários »'); ?> </span>
<span class="visitas">
<?php if(function_exists('the_views')) { the_views(); } ?>
</span> </div>
</div>
</td>
</tr>
</table>
<div class="entry">
<?php the_content('Continue lendo »'); ?>
<p class="submeta">Escrito por:<strong><?php the_author(); ?></strong>
<?php
if(function_exists("the_tags"))
the_tags('\\\\ tags: ', ', ', '<br />');
?>
</p>
</div><!--/entry -->
</div><!--/post -->
<?php endwhile; ?>
<div class="page-nav"> <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
</div> <!-- /page nav -->
<?php else : ?>
<h2>Não encontrado</h2>
<p>Sorry, but you are looking for something that isn't here.</p>
<?php endif; ?>
</div><!--/content -->
<?php
include_once("real-footer.php");
?>
</div><!--/left-col -->
<?php
$current_page = $post->ID; // Hack to prevent the no sidebar error
include_once("sidebar-right.php");
//get_sidebar();
?>
<?php get_footer(); ?>
E o problema é que a navegação da página não está funcionando, eu clico pra ir para a próxima página e sempre volta para a primeira! o que posso fazer para arrumar isso?
Abraços
não resolvido