m is a WordPress query string variable which can be used to request posts posted at a certain time. It is parsed in the method get_posts() of wp_query.

m allows specifying the time upto the second. Its format is yyyymmddhhmmss, where

  • yyyy: year
  • mm: month number
  • dd: day of the week
  • hh: hour
  • mm: minute
  • ss: second

In short, m can be used to query posts with a specific timestamp. As an example, http://ifacethoughts.net/?m=200607031745 returns the posts posted on 3rd July 2005 @ 17:45. Of course all the fields are not compulsory, you can request the posts posted in July 2005 by using http://ifacethoughts.net/?m=200607.

There is some redundancy as other query string variables like year, monthnum, day, hour, minute and second can be achieved to the same effect.

The plugin developers need not access this global variable since this is purely a query string variable.

Back to full list of global variables.

Technorati tags:

Discussion [Participate or Link]

  1. Abhijit Nadgouda’s List of WordPress Global Variables « Lorelle on WordPress said:

    […] Dates: month, weekday_abbrev, weekday, monthnum, m (by “moment in time”), and day […]

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.