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 (@ 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
Editor's note: 404 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!
Editor's note: 404 link removed.
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 saying1 that:
- They aren't 100% sure of the cause, but yes, the hack 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:
Jean-Baptiste Jung, mastermind behind the popular sites Cats Who Code, WP Recipes, and the newer Cats Who Blog, reviews our new book, Digging into WordPress!
The goal here is to make a list of posts in the sidebar that show a number of recent posts. There will be a button you can click which will replaces those links to recent posts with older posts, AJAX style. You can keep clicking the button and keep getting older and older posts. On this site, we currently show 5 recent posts. So this little section shows the 5 posts after that, then clicking the button once will show 5 more older than that, and so on. This quick post outlines six steps to make it happen.
By default, WordPress generates an RSS feed for the comments on every published post. Many sites take advantage of this by displaying a feed link next to the comments area. This enables visitors to subscribe to the comment thread and stay current with conversation. It's convenient, simple, and super useful. For example, a typical feed menu for many blogs includes the following items: