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.
Enter a search query (normally a function or variable name) and you will get a listing of multiple results:
- Link to the page in the Function/Template Tag Reference from the WordPress Codex
- Link to a PHPXref page for your query (at http://xref.yoast.com)
- Link to the phpDoc page at WordPress.org
- 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.
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.
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.
Charles Stricklin’s WordPress Podcast merges with Joost De Valk’s Press This. Should be all the better for it!
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!
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:
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 ;)
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.
rel="canonical" support, query for posts AND pages, post thumbnails, optimized database tables, and more!
Importing and displaying feeds in your WordPress themes is a great way to share additional content with your readers. Some good examples include: