How To: Create a Slick iPhone Interface for WordPress

This was a guest post by Alex Denning, who is a WordPress power user, web design freelancer and currently maintains two sites – Nometet.com and GreenGrassGames.com. You can follow him on Twitter here. If you have WordPress knowledge and are interested in writing a post for WordPress Hacks, please contact us.

The iPhone has really taken off recently, so a good idea for your blog would be to make an iPhone version. Whilst the iPhone Safari does a very good job of rendering pages, you might find that your site dosen’t quite display properly. Thankfully, it is very easy to create a very slick iPhone interface similar to the one in the menus of the iPhone itself. The images on the bottom is what my site looks like on an iPhone, and you can see what it looks like normally here.

To make our iPhone version of our site, first thing is to download the iWPhone plugin from http://iwphone.contentrobot.com/. Only upload the iwphone.php file to your /wp-content/plugins/ though – don’t upload the theme as well. Activate the plugin. What this will do is send iPhone users to the iPhone version of your site and everyone else goes to the normal version of the site.

For the next part, we’re going to be using some code made by Adam Oliver. Hop over to his site and download the source files and unzip them. All that is left to do is replace the iWPhone plugin theme with the iPhone interface we’ve just downloaded. Open up the iWPhone theme folder and delete all of the files. Now copy and paste Adam Oliver’s interface files into the iWPhone theme folder. You’ll want to edit some of the images so that they have your site’s name and also change the index.php file so that your site’s name is in the title.

All that is left to do is upload the iWPhone theme folder to /wp-content/themes/ and you’re done! The only problem I came across was the first line of the was <?php require_once(“../blog/wp-blog-header.php”); ?>, which was causing an error. Deleting made everything work. You may need to change the path so its <?php require_once(“/wp-blog-header.php”); ?>.

Tweet This | Digg This | Stumble it |

WordPress News & Notes – September 25, 2008

Here is this weeks collection of WordPress-related posts:

  • WordPress Developer’s Toolbox – Smashing Magazine is at it again, this time providing a useful toolbox for WordPress developers.   We were fortunate enough to have about 5 of our posts featured here.
  • WordPress for iPhone Downloaded 100,000+ Times – If you think about how many iPhones are in circulation after only a couple years in existence, this is truly an amazing statistic and a great sign for WordPress.
  • Feed Pauser WordPress Plugin – Keith of Techie-Buzz (also Weblog Tools Collection) has released an awesome new WordPress plugin that pauses a post from being made available through RSS.  Click over to get a more detailed description.
  • Different Ways to Display Content in WordPress – Devito Design does a great job of sharing a bunch of different ways to display your blogs content in WordPress.
Tweet This | Digg This | Stumble it |

WordPress iPhone App Now Officially Available

Attention iPhone owners!   Would you like to blog directly from your iPhone?  Or at least be able to access your WordPress powered blogs from anywhere?

There has been some talk of an WordPress iPhone application for awhile now, but today it is finally official!   Version 1.0 is now available.  Here is what you’ll get with this new iPhone application:

  • Support for WP.com blogs and self-installed blogs version 2.5.1 and higher
  • Embedded Safari for true previews of posts
  • Full tag and category support
  • Photo support for both camera pictures as well as library photos
  • Support for multiple blogs
  • Ability to password protect a post, save as a draft, or mark the post for later review
  • Auto-recovery. This will recover posts which have been interrupted by phone calls

In order to use this new application, you’ll need to have installed the new iPhone 2.0 software (this includes iPod Touch users as well).  For other questions, consult their Frequently Asked Questions page.

I am currently very anti-AT&T and so I haven’t caved and bought an iPhone yet.  I do have an iPod Touch, but I’m always near a computer when using it, so right now I probably won’t use this application until I get an iPhone someday.   For you iPhone users, do you think you will you be using this application?

Tweet This | Digg This | Stumble it |