DiggingIntoWordPress

by Chris Coyier & Jeff Starr

WordPress Foundation

“The point of the foundation is to ensure free access, in perpetuity, to the projects we support. People and businesses may come and go, so it is important to ensure that the source code for these projects will survive beyond the current contributor base, that we may create a stable platform for web publishing for generations to come.”

Custom Query Shortcode: Run a Loop inside Any Post/Page

Posted by on

I had the occasion yesterday to have a page with a section on it where it would output a very specific set of other pages, which would need to change dynamically. What I could have done is built a special page template for this page, and inside that template run a query_posts() to get these posts. But I wanted this page to remain editable from the admin. Besides, creating a special page template every time you need to do something like this is too cumbersome. WordPress is extensible enough to do better.

Hence, the Custom Query Shortcode!

Previous Post Link on index.php

Jack Osborne emailed me with a question. His blog layout shows single posts at a time, with a set of arrows to navigate forward and backward in time. This works great on the single.php page where you can use next_post_link() and prev_post_link(), but those don’t work on the index.php file.

Jack wrote up the solution I sent him.

Sold Out

Posted by on

The first printing of the print version of our book is sold out. We are in the process of updating the book to add all the new stuff up to WordPress 2.9.1, as well as some new secret awesome bonus stuff. We’ve decided to hold off on the second printing until that is ready (next month). When it is done, everyone who has already purchased will of course be getting it as a free update.

Google Maps Shortcode

Posted by on

David Hollander of SparkWeb Interactive sent us in a little code clip for inserting Google Maps into Posts/Pages by the use of shortcodes. Google actually has copy-and-pastable iframe code already in Google Maps that is really easy to snag, but David was having problems with the Visual text editor screwing up the code when saving the Post. With a short code, no problem.

Feature/Bury Comments

Posted by on

In my WordPress Wishes post, I mentioned something I thought would be cool: the ability to “feature” or “bury” comments. This would be very simple, just a few extra links when viewing the comment moderation list in the Admin area. The result would just be extra CSS class names applied when the comments list is output. Utkarsh Kukreti came to the rescue! Here is his announcement post and the plugin in the repository.

An Idea for a New Default Theme for WordPress

“In 2010 WordPress will get a new Default Theme, replacing the beloved/hated Kubrick Theme with a new Theme called 2010. I’ve got opinions on the matter. Oh, do I have opinions. I’ve even gone so far as to create a working idea for a new Default WordPress Theme. Read on to find out more.”

WordPress Wishes

Posted by on

Happy New Year all! I’m looking forward to what will hopefully be an awesome year, with WordPress and otherwise. I thought I’d take the opportunity to wish-o-wish upon a star and toss out some things I think would be really cool to see happen in the WordPress world.

Code is poetry