Hack: Use Time Ago Instead of Dates and Times For Comments

Having the date and time next to each comment on your site works fine. But social media networks have conditioned everyone to look at “time ago” indicators instead, like “3 minutes ago” and “2 days ago” and such. You can get these in your WordPress comments easily with an addition to your functions.php file.

Continue reading “Hack: Use Time Ago Instead of Dates and Times For Comments”

Hack: Delay Posts In RSS Feeds

Yesterday I showed you how to remove the RSS feeds from your site. If you use RSS feeds, though, there is one change you may want to think about. Instead of having new posts immediately appear on feeds, you could delay them. One reason to do this is because some people get alerts from their RSS reader when new posts appear. That can be awkward if you accidentally publish something early and then change it.

Continue reading “Hack: Delay Posts In RSS Feeds”

Hack: Adding Google Analytics Without Editing the Header File

What is the right way to add Google Analytics code? I’ve done it in the past by simply placing the code in the header.php file of my theme. This makes a lot of sense, especially if you have created your own theme or so extensively edited an existing one that you aren’t use a child theme at all, just your own version of the theme.

Continue reading “Hack: Adding Google Analytics Without Editing the Header File”