DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Definitive Guide to WordPress Post/Page Navigation

Posted by on

There are many ways to navigate a WordPress-powered site. There are archive links, category links, page links, internal post links, single post links, admin comment links, tag links, and many other types of navigational links. When it comes to navigating sequentially through your site’s chronological archive pages, category archives, and other types of archive pages, WordPress provides several useful template tags designed to dynamically link the pages together. Likewise, for single permalink post-views, WordPress provides a set of template tags that connects the pages together in chronologically sequential fashion.

New WordPress Search API (Plugin)

This looks promising. Runs MySQL Fulltext search, as well as integration with Google Custom Search Engine.

On the search results page you can refine your search by specifying whether to search posts, pages, and comments. You can also sort the results by relevance, date, or alphabet. The Advanced Search link leads to a form where you can specify author, categories, tags, and date range.

I haven’t tested it yet though, so I can’t officially vouche for it, but I’m really looking forward to playing with it. Built in WordPress search has sucked too hard for too long.

10 Useful WordPress Hook Hacks

Smashing Magazine with a characteristically nice set of tricks for WordPress, this time revolving around hooks. You can attach your own functions to hooks in that funny file functions.php that everyone is raving about. Neat ideas including entering default text directly into the TinyMCE Editor, and putting entire Post contents into a PHP variable.

Remember though that functions.php is theme-specific, so in my opinion should be used for things that are specific to a given theme, while content and admin things should be left to plugins.

Advanced WordPress Targeting with body_class_plus()

Posted by on

Since WordPress 2.8, we can target specific types of page views with CSS using the new body_class() tag. Designed for use within the <body></body> element, body_class() outputs various class attributes according to the current type of page view. This makes it easy to apply page-specific styling such as current-page navigation highlighting and other nifty CSS tricks.

DiW Now Featured at Planet WordPress

We’re happy to announce that Digging into WordPress is now featured at Ozh’ Planet WordPress! Planet WordPress is an incredible WordPress resource, bringing together some of the Web’s finest WordPress contributors, plugin developers, and theme designers. The Planet WordPress feed currently features nearly 50 hand-selected WordPress bloggers and aggregates their syndicated content every two hours. As proclaimed at the site, Planet WordPress is “The Epicenter of Everything WordPress” — definitely a great way to stay current with the wonderful world of WordPress.

How to Use WordPress Revisions to Go Back in Time

By default, all your Posts and Pages save revisions of themselves as you are writing them and editing them. This can really save your butt if you accidentally change or delete something you shouldn’t have and have no other copy. This is a quick overview of how to use this powerful feature of WordPress.

Awesome Image-Attachment Recipes for WordPress

Posted by on

Recently, I found myself on the front lines of WordPress’ somewhat complicated Media-Library system. The site that I was developing required a rather elaborate system of retrieving and displaying image attachments. So, using the latest version of WordPress (2.8.3 at the time), I found myself experimenting with as many template tags and custom functions as I could find. After much experimentation, I discovered the perfect solution, and along the way I collected a healthy collection of recipes for displaying image attachments and their various types of associated information.

Breadcrumbs in WordPress

Posted by on

Breadcrumbs are such a standard design pattern these days I find it surprising there isn’t a build in WordPress function for displaying one. But no matter, that’s what plugins are for. A quick Google search brings up a couple. Yoast has one, so you know that one is pretty good. The other popular one is the NavXT plugin, which I actually used recently on a project and can fully vouch for it.

Show Off Your WordPress Database Statistics

Posted by on

Did you know that WordPress makes it super-easy to display some basic statistics about your database performance? The information may be displayed publicly on your web page, slightly hidden in your source code, or entirely private so only you can see it. There are two basic statistics that are drop-dead easy to include on your pages:

Code is poetry