wordpress - Display all Archives -


i have create few posts in latest news section(cpt) , want show posts archive of custom post type ,its showing of july month archives have published few posts in dates (like have posted in may months) archives getting of july month.

how archives of may months when click on may(2013) should shows posts of may-2013?

and how make sure not using category, should archive only?

here function using show archive:

<?php wp_get_archives( array( 'type' => 'monthly', 'limit' => 12 ) ); ?> 

you showing monthly, need try yearly if want show more months.

<?php wp_get_archives( array( 'type' => 'yearly') ); ?>

there more options run on wp_get_archives(); such postbypost can try.

<?php wp_get_archives( array( 'type' => 'postbypost') ); ?>

look @ codex see these other parameters can you.

http://codex.wordpress.org/function_reference/wp_get_archives

please notice removing limit parameter defaults "no limit"


Comments

Popular posts from this blog

mod rewrite - Using "?" when rewriting the URL -

.htaccess: Transfer name to index.php if not directory public -

Admob integration with pygame in android -