Blogging resources, themes and
plugins for your development.
  • Taking Advantage of Functions.php in Wordpress Themes

    Posted on October 26th, 2008; at 5:36 pm, in Info
    WordPress themes can optionally use a file where theme developers can add their own functions. This file acts like a plugin and gets automatically loaded during WordPress initialization, to get it working it just has to be named functions.php and reside in the theme folder.

    Although not many themes seem to use it, it’s very powerful, you can use the functions inside for anything you choose. For me it helps me to define a library I can reuse to fasten up my work while keeping code clean and easy to manage. For example I have functions to list recent posts, easily display a copyright footer, highlight author comment, shorten text etc.

    Popularity: 2% [?]

    Did you like this? If so, please bookmark it,
     about it, and subscribe to the blog RSS feed.

     

    Leave a Reply