Hi,
I have the same problem. If I activate the Event Manager plugin, the templates of my site which I print entries of one category not run and WordPress print “\includes\query.php get non object”.
The code of my templates is:
<?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)