Why does my widget break other widgets?

I can already see a problem. It is your use of switch_to_blog(). You are potentially doing multiple switch_to_blog() calls; calling restore_current_blog() once at the end of the loop is meaningless. Please review the codex with examples – http://codex.wordpress.org/Function_Reference/switch_to_blog A quick fix is putting restore_current_blog() within the foreach loop. What happens if you do not use … Read more

wp-pagenavi getting 404 page not found

Maybe you missed the object here, and by the way why do you use query_posts() ? You can try this : <?php $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $args = array( ‘posts_per_page’ => 3, ‘paged’ => $paged ); $query = new WP_Query($args); if($query->have_posts()) : while($query->have_posts()) : $query->the_post(); ?> <div id=”post-<?php the_ID(); ?>” <?php post_class(); … Read more