My archive.php
<?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12, 'show_post_count' => 1 ) ); ?><br/>
My date.php
$date1 = get_query_var('date');
// The Query
query_posts( array ( 'date' => $date1, 'posts_per_page' => -1 ) );
// The Loop
while ( have_posts() ) : the_post(); ?>
<li>
<?php the_time( get_option( 'date_format' ) ); ?> <br/>
<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>
</li></br>
<?php endwhile;
// Reset Query
wp_reset_query();?>
but it show all the posts form the blog. how can I edit it to show the post from the proper year and month when some one click the link generated by arhive.php?
www.mydomain.com/blogarchive
that will be redirected to the proper page. isn't it? eg: if I click archive by author then it will be redirected to author.php. its a default action by wordpress. am i right? – Riffaz Starr Dec 12 '13 at 11:56query_posts
and just output the default query. – Milo Dec 12 '13 at 16:17query_post
? – Riffaz Starr Dec 13 '13 at 4:18date.php
I have the following codes only.while ( have_posts() ) : the_post(); ?> <li><?php the_time( get_option( 'date_format' ) ); ?> <br/> <a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a></li></br> <?php endwhile; wp_reset_query();?>' when I click **Dec, 2011** on
www.mydomain.com/blog/archive` then the URL becomeswww.mydomain.com/blog/2013/12
that's currect. but it shows only three posts. – Riffaz Starr Dec 13 '13 at 5:39