Whats the .php file called when a user clicks on a Monthly archive?
-
I currently have a list of archives based on a monthly basis. This is generated using:
<?php wp_get_archives('type=monthly&limit=12'); ?>
This generates a list of months. What template page does the visitor get directed to when they click on a month?
How can I tweak my exisiting loop to just show that months posts. My current loop is:
<?php get_header(); ?> <div id="main" role="main"> <?php if (is_home()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts("cat=-6&paged=$paged"); } ?> <div class="inner"> <h1><?php trim(wp_title("")); ?></h1> <?php include ('sidebartwo.php'); ?> <section class="main-wrap twocol news"> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <article class="box-style"> <time><?php the_time('M d') ?><span><?php the_time('Y') ?></span></time> <h2><a href="<?php the_permalink()?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></h2> <?php the_content(''); ?> </article> <?php endwhile; ?> <div class="next-prev-wrap"> <span class="next"><?php next_posts_link( 'Older posts', $post->max_num_pages ); ?></span> <span class="prev"><?php previous_posts_link( 'Newer posts', $post->max_num_pages ); ?></span> </div> </section> <?php endif; ?> </div> <!-- /inner --> </div> <!-- /main --> <?php get_footer(); ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Whats the .php file called when a user clicks on a Monthly archive?’ is closed to new replies.