Category: WordPress Hacks

  • Numbering your comments, pingbacks, trackbacks or all

    Since WordPress 2.7 exists an API for the comment area. Thereby you can purge the PHP-portion within comments.php. Jean-Baptiste shows a simple solution to count comments. This solution is very well known and get used pretty much since the first release of WordPress. But if you like to have a filter, which counts only the…

  • Spelling WordPress Always Correctly

    Sometimes it happens that you have misspelled WordPress in your article because you were in a rush. Since WordPress is a registered trademark, it should be natural to write WordPress the correct way. As Lorelle mentioned on her blog, Matt wrote a script, which forces WordPress into WordPress across all of the 5 million plus…

  • WordPress and register_sidebar

    Everyone who is building WordPress Themes probably implement the widget function in their theme. Code for the widgets is in functions.php. Here a code snippet of the default theme:

  • Use Constants To Integrate WordPress In Other CMS

    Sometimes you need to integrate WordPress into another CMS, like Typo3, Drupal or whatever is out there. The blog should have the same design, use same images and Javascript or implement existing links. Mostly you run the WordPress blog on a subdomain like blog.example.com and the data lies on example.com/css/ and so on.

  • Comment And Ping Count In WordPress 2.7

    The comment area changed a lot in WordPress 2.7. A good reason to check your comments.php and make some changes to it. Especially I like to seperate the comments from Ping- and Trackbacks. Matt shows in an excellent tutorial how to do it: Separating Pings from Comments. But I didn’t like one thing in this…

  • Add Avatar To WordPress Default

    Avatars are popular as identification and with the service Gravatar it is largely used in the comment area of different applications. WordPress allows the user some basic settings. For example loading a default or generated Avatar, if the commentator doesn’t have one. Various themes have a standard Avatar to match the design. But even here…