DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Global Custom Fields

Posted by on

UPDATE: Make sure to take out “Take Two” on this concept, with a cleaner method for doing this.

Custom fields allow us to attach data to Posts or Pages that we can yank out and use at will in our templates. They are awesomely flexible and single-handedly allow WordPress to be used for about any CMS need. The fact that they can only be used on single Posts can be limiting in some circumstances. Sometimes you wish you could grab a custom value that you can control and is consistent globally, regardless of the current post. In this post we’ll look at a technique to do so.

Easy Custom Feeds in WordPress

Posted by on

Now that we have seen how to setup Tumblr-style posts, it would be nice to be able to segregate the Tumblr-posts category from the main feed into its own, separate feed. This would enable readers to subscribe exclusively to the Tumblr-posts feed and maybe display it in their sidebar or something. While we’re at it, it would also be cool to be able to provide readers with a full menu of feed choices, including the following:

Including WordPress’ comment-reply.js (the right way)

Web developer and WordPress enthusiast Peter Wilson explains an improved method for including WordPress’ comment-reply.js. His method “checks if the visitor is browsing either a page or a post, if comments are open for the entry, and finally, if threaded comments are enabled. If all of these conditions are met, the JavaScript required for threaded comments is added.”

Serve IE6 Visitors the Default WordPress Theme

Nathan Rice shares an clever technique to serve your IE6 visitors the Default WordPress theme (or any theme, for that matter). He even wraps it all up into a nice plugin that you can use for your site. I think this is a good middle-ground between completely ignoring IE6 and breaking your back trying to accommodate it. You could even design an “all-purpose” theme for IE6 to streamline new site development. Drag, drop and done.

Embed an MP3 Widget of Any Song (Legally)

Posted by on

Let’s say you were going to start a music review site where you review individual songs. Words are great, but in this context they aren’t going to mean much unless you have the song right there to go with it that can be listened to. This presents some interesting legal problems. You can’t just upload your own copy of the song to your web server and use some kind of MP3 player on your website to present the song. That is illegal distribution of the MP3 that could get you into trouble.

Setting Up a Simple Backup Process for WordPress

Use the WP-DB-Backup Plugin, have it send a copy to your email. This is what we do on DiW and it works great. Part of security is having clean and recent copies of your data in case of failure.

How to Keep WordPress Secure

WordPress is like Windows, it’s a huge target so hackers are extra-motivated to exploit it.There has been a bunch of brew-ha-ha over WordPress security over the last week or so. It started off a few weeks ago with a really easy URL hack to reset the Admin’s password. That ballooned into a far nastier exploit allowing a new admin to be created who could totally hose a site. Matt Mullenweg does a little damage control here by essentially saying the best way to stay secure is to stay updated to the latest version. I wholeheartedly agree, and think that that step is just a part of a complete security breakfast (the upcoming book will have lots on security). I have probably nearly 20 WordPress sites I maintain and every single one of them was at 2.8.4. It’s so trivially easy to upgrade, It’s a no-brainer.

Look Ma, Editable Text Regions

Posted by on

WordPress is a CMS. The whole idea being to manage content and make websites editable without having to wrangle code. Any theme can handle Posts and Pages, but what about those “smaller” areas. Little chunks of text placed around a design like a small “about” section, or the copy in the footer of a website. A lot of times this text is hard-baked right into the theme, which isn’t a very friendly way to do things, as it can’t be updated by average Joe user.

How to Display a Copyright as a Range of Dates

Posted by on

Technically, your work is protected under copyright “the moment it is created and fixed in a tangible form that it is perceptible either directly or with the aid of a machine or device.” [1] Registration of your copyrighted work is not required [2], but you should include a copyright notice on all published works [3].

CMS Your WordPress with These 10 Plugins

WordPress is a CMS out of the box, but sites that are really deep in page templates and hierarchies can benefit from some help on the back end for managing them all. This roundup of plugins do just that.

Note: link removed 2013/04/21http://www.thinkdave.com/cms-your-wordpress-with-these-10-plugins/

Code is poetry