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
dbh plus two PHP functions
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 using them? Not at all. There are solutions to this problem, unfortunately all of them require modifications of the theme files. Then there is FPW Post Thumbnails plugin. It is the cleanest and the least obtrusive standalone help. Its functionality will be included in the next version of FPW Category Thumbnails as well. You can find it in WordPress repository.
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. Finally I found this post: ...plugin-nextgen-gallery-problems-with-png-transparency-thumbnails which offered a solution. It requires a modification of NextGen plugin code and after every upgrade of NextGen you'll have to remember to re-apply this patch.
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, and creativity.
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 fonts available as of today.
How about hosting your own fonts?
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.
Theme Switcher Reloaded plugin by Themebot allows the viewer to make a selection from available themes and it does it well. This plugin is being used on our website ( see the sidebar ).
It is not uncommon that our websites become slow. We have to remember that majority of viewers are not very patient and will not wait until our pages load. There are countless reasons for website to become sluggish. The following article - Better permalink rewrite code by Milan Petrovic deals with one of them.truculent-ending