On: 2005/09/03
Shorter URL for this page: http://ozh.in/ko

Download !

Ready to make things more accessible and customizable with your theme ? Get these two files !

  • functions.txt (download and save as .php)
  • functions.php (highlighted code, copy and paste in a blank file, but do not download as is)

Credits & License

Once again, coding something with WordPress has been extremely pleasant and the source is so clean that it barely needs a manual. Thank you developpers, and thanks a lot to Cena for maintaining the excellent WordPress Xref.

WordPress Theme Toolkit is not Kubrick2 ! It's just something to help you create something as cool and featured as Kubrick 2 :)

(As time of writing, Kubrick 2 is available as a beta, and will be shipped with an admin menu. Credits for the concept of an admin menu surely goes to Michael from Binary Bonsai who publicly wrote about it in June 2005. Ever since knowing that this theme would come with an admin menu, I decided not to have a look at it, since this was something I had planned to do for long and I wanted to get it working myself before I would look into someone else’s code. If you dig into both codes, you'll probably find things similar, and things different.)

The Theme Toolkit is free of charge and free to use. I ask for two things in return :

First, leave the file header unmodified, so that people having a peek inside the script will know where it's from.

Second, let me know about your theme ! The best way to do so is showing a little link love : blog about your new theme release and link to planetOzh. Or even, do you really want to make my day ? Along with the traditionnal link "Theme by Joe" pointing to your blog or theme page, add something like :

  1. Theme by <a href="yoursite.com">Joe</a>
  2. with a bit of
  3.   <a href="http://planetozh.com/"
  4.  title="planetOzh : Home of Wordpress Theme Toolkit">Ozh</a>

If you are to sell or otherwise monetize your theme, I kindly request that you do put this credit in.

Page: #1 #2 #3 #4 #5

Shorter URL

Want to share or tweet this page? Please use this short URL: http://ozh.in/ko

Metastuff

This page "WordPress Theme Toolkit" was posted on 03/09/2005 at 2:36 pm
Watch this discussion : Comments RSS 2.0.

196 Blablas

  1. Abhishek says:

    Thanks for the solution !!

  2. […] WordPress Theme Toolkit is a tool that allows theme authors add an admin menu as easily as editing 3 lines, and it powers […]

  3. Andrea says:

    Thanks man. Very useful to those of us who need to knock out lots of different blogs…

  4. […] disponibile anche la versione senza pannello di amministrazione. Nerino utilizza il noto toolkit open source per temi wordpress, tuttavia qualcuno ha segnalato problemi con l'editor di scrittura avanzato, per questo metto […]

  5. […] disponibile anche la versione senza pannello di amministrazione. Nerino utilizza il noto toolkit open source per temi wordpress, tuttavia qualcuno ha segnalato problemi con l’editor di scrittura avanzato, per questo metto a […]

  6. […] disponibile anche la versione senza pannello di amministrazione. Sportemplate utilizza il noto toolkit open source per temi wordpress, tuttavia qualcuno ha segnalato problemi con l’editor di scrittura avanzato, per questo metto a […]

  7. mike says:

    i messed up my blog big time and need your help…not sure what i did but its not working http://www.blackfitnessblog.com…i messed with the themetoolkit.php file help please

  8. Ozh says:

    mike » This is for theme author who know what to do with it (ie add an admin menu). Sorry I cant help with this.

  9. […] Theme toolkit :  Por algunos Scripts que me fusilé de ahi pero como son libres no es tanto fusil. […]

  10. […] once been known to cause major problems with WordPress MU, Ozh's WordPress Theme Development Toolkit, which allows designers to easily add theme options into the back end seems to be working […]

  11. […] and or a slightly better grasp of what's going-on within the back-end of themes, perhaps Ozh's Theme Toolkit is not enough. Fortunately, In The Woods added a detailed explanation of how to build […]

  12. Elbujero.com says:

    […] Theme ToolKit […]

  13. ReCharge says:

    […] Theme ToolKit […]

  14. Mint Tree says:

    Hi Ozh,

    Is there an example to get the specific values for the Multiple Checkbox?

    Thanks!

  15. Mint Tree says:

    Never mind, I got it through the DEBUG =P… was stuck on what the values got stored ;).

    Anyway, tips to all the future programmer: uncomment the debug (FYI: it's 1:05 am here, so I think that's why I hit a brick wall =).

  16. futuRich says:

    so what exactly does the end product look like? examples = thanx :o

  17. Ozh says:

    futuRich » I think you didn't understand what this is for. The end product is what the theme designer decides to make of it. This is just an internal tool.

  18. Jesh says:

    Hi Ozh. You'll have to excuse the question because I didn't look through all 171 comments on this post (who has the time?) to see if it's already been answered, but why haven't you supplied the download link as a zip or tar? It's pretty "wonky" for a user to grab your scripts as is. I can't really complain though. Thanks for the awesome Admin Menu.

  19. Anthony says:

    Pretty comprehensive guide..even though I do play a lot with html and scripts, having menu driven edits are far better than editing wordpress pages, digging through the code.

  20. […] Logo ('DizCow') from the awesome and free LogoInstant. – Theme Options made possible by Theme Toolkit, with some minor […]

  21. […] the wonderful planetOzh's Theme Toolkit, the pigtopus speech text at the top can be changed, as well as the top navigation bar links, the […]

  22. Hey there Ozh,

    I've been following this page for a bit. Good stuff. Any plans to bring the tool kit up to 2.7.1 compatibility?

  23. Ozh says:

    James: yeah, this has been on my todo list for ages

  24. Bedo says:

    Hi Ozh,
    I´ve dowloaded a theme which includes also your Theme Toolkit. http://wpjunction.com/themes/corporate/
    It´t cool, but I am struggling to find the bug which is causing that my custom Home page is not showing up.
    eg. I would like to have my custom home page and the blog section elsewhere. Some how when I change the wp option for the home page, it´s always calling the index file. However I could locate it to your toolkit. Can you help me?
    Wp 2.7.1, thank you!

  25. Steve says:

    Ozh
    Thanks so much for this tool! I have used is successfully for a friends website: twistedamerica.com. Please forgive me if you have answered this question before but is there anyway I can edit the code so that it doesn't mess up single quotes? Its fine when you first store the options, but when you come back the text is always broken, like it added a break after any single quotes. I'm kind of a newbie at code so please excuse me if I am asking a silly question.
    Thanks again
    Steve

  26. Anil says:

    It seems like this doesn't work with wordpress 2.8. It stopped functioning perfectly when i upgraded. I think problem is with get_Category

  27. Elpie says:

    @Anil, the Toolkit does not use get_category but a customised one might ;)

    You may be running into a WordPress problem here. 2.8 has a known issue with category functions and this has been fixed in 2.8.1, which is currently in beta testing.
    See here for more info: http://wordpress.org/support/topic/280256?replies=26#post-1104991

    I am running 2.8.1 Beta on some production sites now because of some of the issues in 2.8. You might like to consider doing the same (or waiting a bit for the final release). Try it on a test site first and see if the problem with your Toolkit goes away.

  28. Carlos says:

    Hey Ozh,
    I known your are a busy person, but if you can bring the tool kit up to 2.8.1 compatibility will be more than great, you will make more people happy ;)

    Theres a option to pay for this compatibility? Please let me know, write to my email.

    Regards.

  29. kymac says:

    This is an awesome tool for me! I have fixed a problem with checkboxes and now have it working under WP 2.8.6.

    Here is the modified read_options()

    1. /* Read theme options as defined by user and populate the array $this-&gt;option */
    2.         function read_options() {
    3.             $options = get_option('theme-'.$this-&gt;infos['theme_shortname'].'-options');
    4.             $options['_________junk-entry________'] = 'ozh is my god';
    5.             $this-&gt;option = array();
    6.             foreach ($options as $key=&gt;$val) {
    7.                 // is_array check needed for Multiple Choice
    8.                 if (is_array($val)) {
    9.                     foreach ($val as $key2=&gt;$val2) {
    10.                         $this-&gt;option["$key2"] = stripslashes($val2);
    11.                     }
    12.                 } else {
    13.                     $this-&gt;option["$key"] = stripslashes($val);
    14.                 }
    15.             }
    16.             array_pop($this-&gt;option);
    17.             return $this-&gt;option;
    18.             /* Curious about this "junk-entry" ? :) A few explanations then.
    19.              * The problem is that get_option always return an array, even if
    20.              * no settings has been previously saved in table wp_options. This
    21.              * junk entry is here to populate the array with at least one value,
    22.              * removed afterwards, so that the foreach loop doesn't go moo. */
    23.         }
  30. kymac says:

    I just realized that I am using a modified version of themetoolkit.php that was included with the Simplicity theme by Lai Zit Seng. Lai fixed a bug with an extraneous dollar sign, and corrected some HTML ending tags in version 1.12.

    If you will email me using the About->Contact Us form bluegrassmiataclub.com, I will send you this version.

  31. kymac says:

    Sorry, I forgot to include to select 'Mac McDonald' as the contact in the form mentioned in my previous post.

  32. Sherif says:

    im a new web designer not good with php and i look for tutorials or some help of how to use wp theme toolkit.

    i understand the basics and already have done some stuff with my new theme with it but i still need to do some more things but i cant

    so any help plz ?

    Thanks

  33. John says:

    Is the toolkit compatible with wp3. I see a lot of old stuff, is it up to date?

  34. Ozh says:

    John » Probably. Dunno. Test and report :)

  35. naomae says:

    thank you for the idea for making themes for blogs more beautiful. hope you can post more about this stuff. thanks!

  36. Tjobbe says:

    This looks like exactly what I need, but I have two questions!

    I have managed to edit the functions.php file and created custom fields which succesffully stores my custom data to the db.

    How do I:

    a) echo these custom fields, one-by-one, into my template?

    b) Can I use some tags to put these custom fields into my posts and pages?

  37. Jatin Soni says:

    I am creating new and very first theme for wordpress and even not familiar with php, thanks for this nice tool.

    Now I am very much confused how to create image uploade field into theme panel…

    I have used Image URL for header logo code as below

    Admin Panel code:
    $mytheme->option['site_logo'] = "myurl here"

    Theme I have added below code:

    <a href="/"><img src="option['welcome']; ?>" alt="logo" width="260″ height="125″ border="0″ title=""/>

    But still logo image doesn't appearing at all. It works with direct url.
    Please help me to solve this issue also with image upload option if possible.

    My theme will have lots of images so I required proper image URL and Upload option on admin panel.

    Thanks in advance…

  38. Jatin Soni says:

    I check the image coming other places but not at header logo.. :( what is the reason please help me to solve this.

  39. sugeng tigefa says:

    this themes comptability latest wordpress version? :)

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>
Gravatars: Curious about the little images next to each commenter's name ? Go to Gravatar and sign for a free account
Spam: Various spam plugins may be activated. I'll put pins in a Voodoo doll if you spam me.