Sorry, I’m new in WordPress.
What it is 2011?
I haven’t a sample url because is in production server, sorry.
I’ve updated 5.1.4.3 version and the problem continue.
WP version 3.3.1, no multisite.
I post all my template.:
<?php
/*
Template Name: PageOfCJENews
*/
get_header('comun'); ?>
<div id="primary">
<div id="content" role="main">
<?php
if (is_page() ) {
$category = 'Noticias CJE';
}
if ($category) {
$cat = get_cat_ID($category);
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
$post_per_page = 2; // -1 shows all posts
$do_not_show_stickies = 1; // 0 to show stickies
$args=array(
'cat' => $cat,
'paged' => $paged,
'showposts' => $post_per_page
);
$temp = $wp_query; // assign orginal query to temp variable for later use
$wp_query = null;
$wp_query = new WP_Query($args);
if( have_posts() ){
while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<div <?php post_class() ?> id="post-<?php the_ID(); ?>">
<strong><h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2></strong>
<div class="entry">
<?php the_content('Read the rest of this entry ?'); ?>
</div>
</div>
<?php
endwhile;
if(function_exists('wp_pagenavi')) { wp_pagenavi(); }
}else{
?>
<h2 class="center">No encontradas noticias</h2>
<?php
}
$wp_query = $temp; //reset back to original query
} // if ($category)
?>
</div><!-- #content -->
<?php get_sidebar(); ?>
</div><!-- #primary -->
<?php get_footer(); ?>