Category: WordPress Hacks
-
Manage Multiple Excerpt Lengths
Behind our 10th door of our Advent Calendar, we have a tip how to use multiple excerpt lengths. WordPress 2.9 allows you via filter to adjust excerpt more string and the length of the excerpt. But if you need several excerpt lengths for different templates, then what?
-
Display The Total Number Of Registered Users
Anyone who operates a community using WordPress, and would like to display the total number of registered users, can easily and quickly use the following small code snippet. It reads via SQL the content of the table “users“, and the numbers of IDs getting counted. This value simply gets wrapped around a text. $myusers =…
-
5th Post Of Our Advent Calendar: Theme Uninstaller
Enjoy our 5th post of our Advent Calendar: More and more WordPress themes, especially commercial themes, have an option page. The settings are stored in the database. Only few themes have an uninstall button to delete these settings in your database.
-
2nd Door Of Our Advent Calendar – Support in WordPress for rel=”canonical”
WordPress 2.9 will support the attribute rel and his value canonical, you can also read about it on an older post how to integrate the values and what’s about it. Therefore you don’t have to paste the HTML explicitly in your theme. In previous versions of WordPress 2.9, the intergration is easy to do: Putting…
-
WordPress MU – embed language-dependent templates
On one of my domains I installed WordPress MU a few days ago. There will be a German and an English blog, which both have the same content and are also the same theme. In WordPress MU, it is possible to choose a separate blog for each language.