Magazeen WordPress theme and the return of the incorrect comment date issue
magazeenimage Magazeen Wordpress theme and the return of the incorrect comment date issue

Magazeen - Image from SmashingMagazine.com

This site runs off of the free Magazeen theme created by the folks over at Smashing Magazine.

I’ve modified it quite a bit from the default, but I really like it as a starting template.

The problem I ran into right away was the annoying “comment date bug”. It became obvious fairly quickly that when someone left a comment, the comment was listed as having been left on the date of the post, instead of the actual date.

So even if the comment(s) came a month later, it would look like all the comments were left on the same day the post was created. Not a showstopper, but very annoying.

After a bit of Google-wrangling, I found the answer buried in the comments thread of the initial announcement post on Smashing Magazine.

Right now there’s over 500 comments on that post, so I thought I’d provide the answer here in case anyone does some Googling, maybe they can spare themselves the ordeal of sifting through 500 comments.

Anyway, on with the fix:

1. open “functions.php” of your Magazeen theme

2. Search for this string (should be around line 46):

<?php the_time( ‘l j, Y’ ) ?>

and change it to this:

<?php comment_date(‘M j, Y’) ?>

After that you should be all done. The fix was provided by a commenter named ‘div’ on the Magazeen comment thread. There were also apparently a lot of issues with the top thumbnails carousel, but luckily I didn’t experience those myself.

I applied this fix once, but I think when I updated to 3.0 it got overwritten. Shoulda used a child theme I guess. Anyway all’s well that ends well.

 Magazeen Wordpress theme and the return of the incorrect comment date issue

I'm John Garrett, an author and writer who loves Comics, Sci-fi, Fantasy, Web and Tech stuff -also I prefer food in sandwich form.
Aside from reading this site, you can also hire me to do stuff for you!

Related Posts


Previous Post: »

Next Post: »

  1. Nito Anello (Reply) on Nov 19, 2010

    Thanks man.. it worked for me, but this way:

    • JG
      Twitter:
      (Reply)
      on Nov 20, 2010

      Yo Nito!

      I’m glad it worked out for you, but I think my WordPress ate your code, bro. lol..

      If you get a chance (hopefully you subscribed to comments) drop back in and try pasting in in again or email it to me and I’ll drop it in there. The following is wrapped up in “<pre>” brackets:

      < ?php the_time( ‘l j, Y’ ) ?>

      so try doing that or just email me.

      Just in case anyone else trips over this I’d like them to see your method. Thanks, man!

  2. John Kohl from social security benefits (Reply) on Jan 24, 2011

    Little bugs like that can always get quite annoying. Glad you got it fixed though.


CommentLuv badge

This site uses KeywordLuv. Enter YourName@YourKeywords in the Name field to take advantage.


John Garrett on the Web