How to Use TimThumb to Automatically Resize WordPress Post Images Part 2: Installing TimThumb
Step 1: Install TimThumb
First, we need to add the TimThumb plugin to our web server.
If you already have a theme that uses TimThumb, you only need to follow steps 2 and 3.
A. Grab the Plugin
Head over to the official TimThumb website and grab the code for the plugin.
- Visit http://www.darrenhoyt.com/2008/04/02/timthumb-php-script-released/
- Click the “View Source Code” link
- Copy the code provided into a Notepad file and save it to your desktop as “timthumb.php”
B. Upload the Plugin to Your Web Server
Let’s open up our FTP Client (in my case, Filezilla) and upload the PHP file to our theme.
- Connect to your web server
- Go to /wp-content/themes/YOURTHEME
- Create a new folder within your theme directory and call it “scripts” (Note: You can name the folder whatever you like. For this tutorial, we will use the name “scripts”)
- Upload “timthumb.php” to this new folder
- In the same folder (“scripts”), create a new folder called “cache”
Great – TimThumb is now officially installed on our WP blog! Let’s move on to part 3.
You’re Viewing a Post Series!
This post is only one part of our discussion. Check out the other parts below:
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 6: Styling Image with CSS
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 5: Integrating TimThumb with WordPress Theme
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 4: Adding Image to Post Using Custom Fields
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 3: Changing Folder Permissions
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 2: Installing TimThumb
- How to Use TimThumb to Automatically Resize WordPress Post Images Part 1: Introduction
Topic Tags:
blog design, filezilla, images, php, timthumb, tutorial, wordpress