miriamdepaula

WordPress WP Pagenavi errors

Jun 20th, 2012
93
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /**
  3.  * Template index
  4.  * @package WordPress
  5.  * @subpackage wpmidia lab
  6.  * @author Miriam de Paula - http://wpmidia.com.br
  7.  * @since 09/03/2012 - v1
  8.  */
  9. get_header();
  10. global $wp_query;
  11. $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
  12.  
  13. $args = array_merge( $wp_query->query, array('post_type' => array('post','lab'), 'paged' => $paged ) );
  14. query_posts($args);
  15. ?>
  16.  
  17. <!-- My normal loop goes here ..... -->
  18.  
  19. <?php wp_pagenavi(array( 'query' => $wp_query )); wp_reset_query(); >
RAW Paste Data