You are here: WTF » Documentation »

Getting Started

Getting Started

Minimum Requirements

To be able to use the WTF in your themes you will need:

  • PHP v5.x – Although the WTF will work with PHP v4 some of the Extra Functionality Methods require PHP v5+.
  • WordPress v2.8+ – Although the WTF might work with earlier versions of WordPress it has only been tested with v2.8 and above.

Download

First off you will need to purchase and download the WordPress Theme Framework and extract the folder on your PC.

Installation

Make sure the wtf folder is extracted and drop it in the root directory of your theme. It should be here:

wtf_files

Now open up the functions.php file in your theme’s root folder (if you don’t have one then just create one). Insert this one, simple line of code:

require_once (TEMPLATEPATH . '/wtf/wtf.php');

Now you are ready to use the WordPress Theme Framework in your theme.

Configuration

Configuring the WTF is not essential but can be very useful if you want to change the name of the theme options. All you need to do is locate the file wtf/config.php. In this file you will see the following:

<?php
 
//Edit this to customize the theme name in the options menu
define('WTF_THEME_NAME', 'WTF');
 
?>

The WTF_THEME_NAME option allows you to change the name of the theme options. So if you changed “WTF” to “My Theme” the link to the options page and the title of the options page in the WordPress backend would now appear as “My Theme Options”.

WTF_THEME_NAME