Código PHP:
Por si alguna duda, moví wp_reset_postdata(); hacia arriba, abajo, lo comenté, en fin, todo esto me saca algo de html, pero vacío:Ver original
<?php // We query the t-themes post type $post_per_page = 9; if ( is_home() || is_page('random') ) : $t_themes_query = new WP_Query ( array ('post_type' => 't-themes', 'posts_per_page' => $post_per_page, 'orderby' => 'rand') ); elseif ( is_page('a-z') ) : $t_themes_query = new WP_Query ( array ('post_type' => 't-themes', 'posts_per_page' => $post_per_page, 'orderby' => 'title', 'order' => 'ASC', 'nopaging' => false, 'paged' => get_query_var('page') ) ); elseif ( is_page('recently-added') ) : $t_themes_query = new WP_Query ( array ('post_type' => 't-themes', 'posts_per_page' => $post_per_page, 'orderby' => 'date', 'order' => 'DESC', 'nopaging' => false, 'paged' => get_query_var('page') ) ); elseif ( is_page('popular') ) : $t_themes_query = new WP_Query ( array ('post_type' => 't-themes', 'posts_per_page' => $post_per_page, 'orderby' => 'comment_count', 'order' => 'DESC', 'nopaging' => false, 'paged' => get_query_var('page') ) ); endif; /* Start the loop */ while( $t_themes_query->have_posts() ) : $t_themes_query->the_post(); // Código que muestra los post types endwhile; // End the loop. wp_reset_postdata(); ?> <?php if ( $t_themes_query->max_num_pages > 1 ) : ?> <nav id="nav-below" class="navigation"> <div class="nav-previous"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'twentyten' ) ); ?></div> <div class="nav-next"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'twentyten' ) ); ?></div> </nav><!-- #nav-below --> <?php endif; ?>
Código HTML:
Me he estado fijando en la parte del paginado de la clase WP_Query(), pero no acabo de obtener lo que quiero...Ver original
¿Alguien ve algo que no veo yo?
Gracias mil