DiggingIntoWordPress

by Chris Coyier & Jeff Starr

Two Ways to Limit the Number of Posts without a Plugin

Posted by on

Let’s say your blog is set to display ten posts per page, as specified via the WordPress Admin under Settings > Reading. Once set, ten posts will appear on your home page, archive pages, search results, and so on. In other words, if it isn’t a single-view page or an actual “page” page, you’re gonna get ten posts per page. It’s a global setting.

Why Choose WordPress?

Alex Denning of WPShout.com asks 21 WordPress theme designers, developers and bloggers why they choose WordPress for their projects. This is the first of four questions that will posted over the next couple of days. Some very interesting responses so far, and a nice presentational style to boot!

Update: 404 link removed 2013/10/08: http://wpshout.com/why-wordpress-21-of-the-wordpress-community-answer/

Redirect Mobile Users to a Mobile WordPress Theme

Posted by on

Let’s say you want to have a special theme for your WordPress site for mobile users. You don’t want to use a pre-canned solution or anything third-party, you just want to create and design the theme yourself. So what you need to happen is for the site to detect mobile users and server up an alternate theme instead. Here is how I might do it.

WPLookup

Enter a search query (normally a function or variable name) and you will get a listing of multiple results:

  1. Link to the page in the Function/Template Tag Reference from the WordPress Codex
  2. Link to a PHPXref page for your query (at http://xref.yoast.com)
  3. Link to the phpDoc page at WordPress.org
  4. Finally, you’ll also get a list of resources and pre-populated search links to other Codex documentation and Google web search

Update (2012/10/19): WPLookup is down for the count, link removed. http://wplookup.com/

WP Questions

Ever had a “WordPress emergency” – your project is due tomorrow, but one line of code is breaking your site and you need answers fast?

WPQuestions is problem-solving community for WordPress, ideal for users seeking quick, succinct answers they can’t find in any WordPress forums. WPQ is also great for established WordPress developers who want to help problem-solve and be paid fairly for their efforts.

Remove Title from Blogroll

Posted by on

Typically when you use one of WordPress functions to output a list of “stuff” from WordPress, you can pass a parameter to eliminate the “title” that WordPress likes to put in there by default. For example, with wp_list_categories you pass along “title_li=” with nothing after the equals sign to remove the title that normally accompanies the output. With the function to output links (e.g. blogroll), you use the function wp_list_bookmarks, but unfortunately using that same parameter the same way is ineffective at removing the title.

Basic Maths

Premium WordPress theme, with heavy use of intellegent grids, from legendary designer Khoi Vinh. Perhaps a little pricey at $45, but may be worth it for some folks who salivate at perfect grids =). Other features include a robust archives page, shortcode functionalities, widgets, and color-based theme options.

Stay tuned for some similar and equally delicious functionality coming to some DIW themes near you!

Create a Custom Database Error Page in WordPress

Posted by on

As a dynamic blogging system, WordPress consists of PHP files (the WP core) that interact with a MySQL database to generate the web pages for your website. When everything is working properly, this dynamic interaction keeps WordPress humming along like a champ, but when your database crashes, WordPress can’t operate and will deliver the following message to your visitors:

75+ WordPress Tutorials in One Post!

This post was so huge I actually had to edit and post it using phpMyAdmin directly to the database — WordPress apparently can’t handle ‘em that big! Seriously though, it’s a great post with over 75 awesome tips, tricks, and techniques for improving your WordPress site. Just some of the leftovers from the book that were too juicy to throw away ;)

Media Temple, WordPress, Mass Hacking

Posted by on

Update: Media Temple is saying (404 link removed 2013/10/11) that:

  • They aren’t 100% sure the cause, but yes, it is their fault.
  • About 10% of all (gs) users were affected.
  • It’s not WordPress specific, it’s PHP specific.
  • Definitely change your passwords, definitely don’t change it back to the original password.

Geeky bits in WordPress 2.9

Automatic rel="canonical" support, query for posts AND pages, post thumbnails, optimized database tables, and more!

Code is poetry