I need to get months like Jan, Feb in WordPress. I have tried:
the_time('M')
the_time('b')
the_date('M')
get_the_date('M')
But I get no output at all. All other formats except M work, and since it is printing the value right away I can not format it afterwards.
Any ideas?
the_time('M')
andthe_date('M')
do same thing and workingOther 2 maybe didn’t work because i never used it try :
Where are you trying to run this? Remember that the_time() has to be used within the Loop, otherwise it won’t have anything to print/return: http://codex.wordpress.org/Function_Reference/the_time
Hope that helps!