monthnum is a WordPress query string variable that stores the two digit month number. It can be used to retrieve archive of posts posted in a certain month, even across years. When a particular post is being displayed, it contains the month when the post was published.

WordPress uses this global variable internally when the archives are requested. Plugin and theme developers can use monthnum to access the month requested or for the month of the current post. Day f the current post can be accessed using day.

Back to full list of global variables.

Technorati tags:

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.



Abhijit Nadgouda
iface Consulting
+91 9819820312
My bookmarks


This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.