La url cambia pero sigue mostrando la primera noticia.
Este es mi código
Código PHP:
<div id="latestNews">
<?php
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$latestNew = new WP_Query(array('posts_per_page' => 5 , 'post_type' => 'post', 'post_status' => 'publish' , 'paged' => $paged )); ?>
<?php if($latestNew->have_posts()) : while($latestNew->have_posts()) : $latestNew->the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class('row collapse'); ?>>
<header class="entry-header">
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'omega' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
<div class="categoriesData">
<?php $category_list = get_the_category_list( __( ', ', 'omega' ) ); echo $category_list; ?>
<div class="separatorCat"></div>
<?php $tag_list = get_the_tag_list( '', ', ' ); echo $tag_list; ?>
</div>
</header><!-- .entry-header -->
<?php if ( has_post_thumbnail() ) { ?><a href="<?php the_permalink(); ?>" class="postThumbnail"><?php the_post_thumbnail( 'homeThumb' , array( 'class' => 'alignnone' ) ); ?></a><?php } ?>
<div class="entry-content">
<?php the_excerpt(); ?>
</div><!-- .entry-content -->
</article><!-- #post-<?php the_ID(); ?> -->
<?php endwhile; endif; ?>
<?php
if (function_exists('wp_pagenavi')) {
wp_pagenavi(array( 'query' => $latestNew ));
}
?>
</div>