Skip to main content
8 events
when toggle format what by license comment
Jun 2, 2013 at 23:46 comment added Juanma Great! Thank you for taking care for this problem! It works great! I tested and adjusted to my own needs and result is perfect except for one thing: it's printing only 2013 and I need to output all years and all 12 months for every years. By outputing all years I mean to show all years with posts. For example, if posts are found for 2013, 2012 and 2010 the it will print 3 rows one for each year and each row will show the 12 months.
Jun 2, 2013 at 23:43 review Suggested edits
Jun 2, 2013 at 23:53
Jun 2, 2013 at 23:08 comment added s_ha_dum You can get the year dynamically with $year = date('Y'); if that is what you want.
Jun 2, 2013 at 22:34 comment added Juanma Thank you again! I think I just need to asjust the output to fit the design but I'm worried about one thing... It's necessary to indicate the year? Whats would happen in 2014? What I need to happen is this: 2015: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2014: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec 2013: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
Jun 2, 2013 at 22:00 comment added s_ha_dum @Juanma : See the edit.
Jun 2, 2013 at 22:00 history edited s_ha_dum CC BY-SA 3.0
added 874 characters in body
Jun 2, 2013 at 21:34 comment added Juanma Thank you! However this prints twelve months and the post titles for each month. Like this: Jan --Post Title Feb Mar Apr --Another Post title --Another Post Title May Jun.. an so on. What I pretend is to print exactly this: 2013: Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ...and if a month has posts simply the output for the month is a link to filter the posts of that month for example if May has posts the word "May" is a link to myblog/2013/05
Jun 2, 2013 at 20:28 history answered s_ha_dum CC BY-SA 3.0