Category: Tips & Tricks

How to get complete MySQL version in WordPress

Featured Image

There are two ways of getting MySQL version in WordPress. First (popular) is to use $wpdb global object and its db_version() method. Second (less known) is to use $wpdb global object combined with its two properties use_mysqli and dbh plus two PHP functions mysql_get_server_info() and mysqli_get_server_info(). Before going any further, let’s have a look at […]

Themes and FPW Category Thumbnails

Featured Image

What should I do if my theme does not support post thumbnails? Can your plugin still be used? Can FPW Category Thumbnails plugin display thumbnails? I’ve been asked these question so often that I felt it deserves some action. There are numerous good free themes not providing post thumbnails support at all. Should we stop […]

Background transparency problem in NextGen Gallery thumbnails

Featured Image

For some time I didn’t keep my post thumbnails in NextGen Gallery. On this website they are all PNG images with a transparent background. The thumbnails created by NextGen were losing background transparency and their background was black. It was unacceptable because of theme switching. My themes use different backgrounds and thumbnails looked rather ugly. […]

Introducing WordPress 3.1 Post Formats

Featured Image

Some people hate it and some love it. I belong to the second category. If you, as a webmaster, don’t like it, simply do not enable theme support for post formats. I think that post formats bring incredible possibilities to website presentation. Basic requirements: WP 3.1, theme support, knowledge of CSS and WP filters, imagination, […]

Using fonts hosted on your site

Featured Image

In Using Google Font API article I’ve presented one method of incorporating specific fonts into your website. The Google’s method will free you from any legal problems related to hosting unlicenced fonts, however, there are couple of drawbacks. Fonts have to be downloaded from Google’s servers and that takes time. Secondly, there are only 14 […]

Using Google Font API

Featured Image

For many years web developers had to rely on fonts being available on viewers’ machines. Not any more – thanks to Google Font API. I’ll present just one simple example of this method. For a list of available fonts go to Google Font Directory. For a complete documentation visit Google Font API. Example: This is […]