Now and then you need in a post or page a catchy image. For editors the thumbnail function is quite comfortable to assign an image to a post or a page. Therefore it is worthwhile to use this picture as a background image for the post. However, it is much better if the image is defined via CSS in the background and it doesn't appear in the markup. Therefore, a small function that defines a default image and if there is a defined post thumbnail, then this will be used.Continue reading …

The Feed-Cache of WordPress is in the database, it's in the table options and sometimes you like to delete it. With a little SQL this is done quite quickly - but be careful, there is no way back! Within WordPress I do it with the help of the Plugin Adminer, which allows a complete mySQL access and you are still able to work in the backend of WordPress. Alternatively it's also possible with phpMyAdmin for example.Continue reading …

On day 10 of our Advent Calendar we show a little code snippet for the WordPress Admin Bar. At first the easiest way to remove the Admin Bar with new function __return_false; include since WordPress 3.0.Continue reading …

On day 9 of our Advents Calendar we show a custom pagination function which allows a user to insert custom next, previous or numbered page links into a post. Use the follow code for an custom plugin or insert the function in your theme, inside the functions.php. Please see the second code-area for an example to hook inside the function for custom parameters.Continue reading …

With version 3.1 of WordPress comes the Admin Bar, which we introduced in a previous article, and this also allows to add your own entries. And so there is, created by the development team of WordPress, a Plugin for additional information available. The Plugin Debug Bar docks on the Admin Bar and gives, with one click on the new menu link, additional details of the installation.
These include the query, cache, PHP messages and hints and tips for obsolete functions.Continue reading …