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:

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: