Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /*
- Template Name: agenda
- */
- ?>
- <?php get_header(); ?>
- <div id="main-content">
- <h2><?php the_title(); ?></h2>
- <br/>
- <?php global $wp_query, $meta ,$paged;
- $page = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $temp = $wp_query;
- $wp_query= null;
- $wp_query = new WP_Query('cat=3&order=ASC');
- $wp_query->query("paged=$page&cat=3");?>
- <?php
- while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
- <div>
- <h3><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s'), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h3>
- <small><?php the_time('d/m/Y') ?></small>
- <br/>
- <br/>
- <?php the_content('<br />Read more »'); ?>
- <br/>
- <?php edit_post_link('Artikel bewerken', '', ''); ?>
- <br/>
- </div>
- <?php endwhile; ?>
- <?php wp_reset_query(); ?>
- <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?>
- </div>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement