I am a newbie to wordpress and have no knowledge of PHP.

I want to show the months in my archive page, in this manner

enter image description here

where, it shows the starting month when i my first post was made and continues to shows all months and year, till the current month of the year.

I want the months to be hyperlinks of this manner http://bibhudutta.com/2014/3/ based on each month and year.

Please help me out, how to do it in PHP and wordpress.


1 Answer 1


Try to use this,

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

Refer to the codex for further customisation,

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.