This tutorial assumes you have Thesis 2.1+ installed and active. This video will show you the general steps of adding custom bits of PHP via the Thesis 2 skin editor and Thesis 2 PHP Box.

  • Step 1: Download the Thesis 2 PHP box here.

  • Step 2: Install the .zip file you downloaded of PHP box via Thesis -> Thesis Home -> Boxes -> Manage Boxes -> Upload Box (read the Thesis docs if you are unsure about the box install steps)

  • Step 3: Activate the PHP box in the Manage Box screen by checking it's checkbox and clicking "Save Boxes".

  • Step 4: Go into the Thesis 2 skin editor and find the template you want to edit, using the drop down on the right select "* PHP Box" and place it in the desired location on the template you want to show it on.

  • Step 5: Hover over the newly placed box and click on the "gear" icon and change any settings you want (you should change the name from "PHP Box" to something that repersents what you are adding later - the rest of the fields are optional)

  • Step 6: Visit Thesis -> Skin Content and you should see a new link called "PHP Box" (if you didn't change the name in Step 5) - click on it to add your PHP code!

Sample PHP Code
Once you have the box installed and placed you can add various snippets of PHP into your website. Here are some examples:

1. Add Portfolio Custom Taxonomy List of Current Portfolio Item (Portfolio Categories)

If you add a PHP box to the Portfolio Item template you can use this code to display the categories attached to the portfolio item. (example placement)

    global $post;
    $category_names = wp_get_post_terms(get_the_ID(), 'portfolio-category');
    $all_categories = "";

    foreach($category_names as $term) {
        $all_categories .= "<a href='" . get_term_link($term) . "' title='" . $term->name . "'>" . $term->name . "</a>, ";

    $all_categories = substr($all_categories, 0, -2);

    echo "Categories: " . $all_categories;