Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: Test
- */
- $args = array(
- 'cat' => 12,
- 'orderby' => 'date',
- 'order' => 'DESC',
- 'paged' => get_query_var( 'paged' )
- );
- $myposts = new WP_Query($args);
- ?>
- <?php if ( $myposts->have_posts() ) :
- while ( $myposts->have_posts() ) : $myposts->the_post(); ?>
- <h1><?php the_title(); ?></h1>
- Inserisci qui contenuto, categorie, tag, ecc.
- <?php endwhile; ?>
- <?php next_posts_link( 'Pagina precedente', $myposts->max_num_pages );?>
- <?php previous_posts_link( 'Pagina successiva', $myposts->max_num_pages );?>
- <?php endif; ?>
- <?php wp_reset_query(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement