Yesterday, you saw [link id="6287"]how to customize your database error message[/link]. You can also customize your maintenance mode file, maintenance.php. This is also located in your wp-content directory and is shown to your visitors while you’re upgrading WordPress core files … [Read more...] about WordPress Hidden Gems: Maintenance Mode Message
WordPress Hidden Gems: Database Error Pages
There are a few files that live outside the theme directory but still affect how your site looks at times. For example, you can create a file called db-error.php in your wp-content directory -- not in themes! -- and use it to style your database connection error message: You … [Read more...] about WordPress Hidden Gems: Database Error Pages
WordPress Hidden Gems: checked(), selected(), and disabled()
This one's for developers! If you're using checkboxes, radio buttons, or dropdowns in your theme or plugin options, you might have overlooked some very useful functions that aren't listed in the Codex: checked(), selected(), and disabled(). These allow you to compress the code … [Read more...] about WordPress Hidden Gems: checked(), selected(), and disabled()
WordPress Hidden Gems: Paste from Word
Even those who have been using WordPress for a while might have overlooked the handy Paste from Word button on the second row of the Visual editor’s toolbar. If your Visual editor’s toolbar has just one row of buttons, press the one labeled Show/Hide Kitchen Sink. In the second … [Read more...] about WordPress Hidden Gems: Paste from Word
Win a copy of WordPress 3 Básico (in Portuguese)
The other day, I learned that [link id="6256"]the Portuguese translation of Beginning WordPress 3 is out[/link]. Now, the Livro WordPress site is giving away a copy of WordPress 3 Básico. I'm not exactly fluent in Portuguese, but it appears that you just need to follow them on … [Read more...] about Win a copy of WordPress 3 Básico (in Portuguese)
WordPress Hidden Gems: Old Permalink Redirects
Yesterday, I showed you that [link id="6248"]the default permalink structure always works[/link], even if you've chosen a "pretty" one. Here's an even lesser known trick: when you change your permalink structure, WordPress stores the old one and automatically redirects … [Read more...] about WordPress Hidden Gems: Old Permalink Redirects
WordPress Hidden Gems: the_shortlink() and the default permalink structure
There's a new function in WordPress 3.0, the_shortlink(). You can place this in your single.php theme file to print a shorter URL for the current post if your permalink structure results in something very long. If you have the WordPress.com Stats plugin installed, you'll get … [Read more...] about WordPress Hidden Gems: the_shortlink() and the default permalink structure
WordPress Hidden Gems: Options.php
Type options.php into your address bar (example.com/wp-admin/options.php) and you’ll get this alphabetized listing of all the options stored in your wp_options database table. Some won’t be editable -- if they’re stored as arrays, you’ll just see “Serialized data” -- but the rest … [Read more...] about WordPress Hidden Gems: Options.php
Beginning WordPress 3 is now available em Português
Beginning WordPress 3 is available in Portuguese as WordPress 3 - Básico. Alegria! The Livro WordPress site has a discount code -- and thanks to @LivroWordPress for letting me know the translation had been released! … [Read more...] about Beginning WordPress 3 is now available em Português
How Many Plugins?
Over in a comment thread on the Tavern, Adam mentioned that he'd like to have a plugin count in the Right Now box on the Dashboard. As it happens, I once wrote a plugin for a client that added some information to the Right Now box, so it was easy to alter it to print the number … [Read more...] about How Many Plugins?