DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Author: Jeff Starr

HTML Formatting for Custom Menus

Posted by on

For some projects, it’s nice to output clean, well-formatted markup. Using theme template files enables great control over most of your (X)HTML formatting, but not so much for automated functionality involving stuff like widgets and custom menus. One of my current projects requires clean, semantic HTML markup for all web pages, but also takes advantage of WordPress’ custom-menu functionality to make things easy. In this DiW article, we’ll see how to enjoy both: WordPress custom menus and clean, well-formatted HTML markup.

That’s Not Spam: False Positives and Ham

Posted by on

Everyone loves a good comment. Readers benefit from the shared information and authors appreciate the conversation and feedback. But you gotta keep the spam out. Akismet and other anti-spam plugins do an excellent job of automating the process, but it’s a good idea to watch out for false positives: legitimate comments marked as spam. Rescuing ham comments from the spam pile promotes healthy comment threads and improves the quality and reputation of your site. In this DiW post, we explain how WordPress & Akismet deal with spam, discuss anti-spam strategy, and share some ham-saving tips and tricks.

Import Feed, Display in Multiple Columns

Posted by on

Recently I worked on a project where a single RSS feed was imported and displayed in multiple columns on the web page. Certain pages display feed items in two columns, others in groups of three or more. This technique uses WordPress’ built-in fetch_feed functionality to parse external feeds, and a slice of PHP magic to display them in multiple columns. It’s flexible too, enabling any number of columns and feed items from anywhere in your theme/template files. For example, you could display any of the following:

Smashing WordPress

Hey I’m sure everyone’s heard by now, but I wanted to post about Smashing Magazine’s new exclusive WordPress section! We’re aiming for quality, in-depth articles, tutorials, and reviews on all things WordPress, and we’ve got some great stuff already in the works. Drop by and check it out! :)

3 Ways to Reset the WordPress Loop

Posted by on

WordPress does an excellent job of keeping track of what’s happening with the loop, but once you start customizing parameters and setting up multiple loops, it’s a good idea to explicitly reset them using one of three WordPress template tags. In this DiW post, we’ll explore these techniques to get a better understanding of when and how to use them in your WordPress themes.

Create an Articles-Only Feed

Posted by on

WordPress makes it easy to publish content in any number of categories, with any number of tags, and with any type of custom post format. So for example, in addition to full articles, you could also offer screencasts, links, side posts, tweets, and all sorts of other peripheral content. Complementary material may work great for visitors surfing around your site, but including all of that extra stuff in your RSS feed dilutes the potency of your main articles. The idea here is that your visitors will subscribe to the more focused content.

WordPress Infographic

Nice little infographic showing the usage of WordPress among the worlds top 100,000 sites. Amazing to see that people out there are still running WordPress as old as version 1.5!

How to Redirect Logged-In Users

Posted by on

WordPress provides a variety of ways to redirect logged-in users. In this DiW post, we explain each of these methods along with some useful tips and tricks along the way. These techniques enable you to redirect logged-in users to internal pages, external pages, and even return them to the current page.

HTML5 Reset WordPress Theme

Based on the BLANK theme, the HTML5 Reset theme is a “style-free theme designed to help get your custom WordPress project off the ground.” Features tons of goodness such as semantic HTML5 markup, starter WP styles, widget-ready sidebar, and includes jQuery, Modernizr and Analytics all built into the mix.

Code is poetry