dotMobimobiThinkingmobiForgemobiReadyDeviceAtlasgoMobi

Mobile-Friendly Blogging with WordPress

Section Feature image
Posted by ruadhan on 19 Sep 2006

Update: dotMobi has released an awesome new mobile pack. Get it here!. So you want your blog to reach as many people as possible, or you want people to be able to access and comment on your postings anytime, anywhere, then WordPress, coupled with the mobile extension is the tool for you.


WordPress

WordPress (http://wordpress.org/) is a very popular Open Source blogging tool. Its popularity is due in part to its ease of use, part to its excellent functionality, and in part due to its Open source status. It is PHP based, and is very easy to install. Wordpress is not natively mobile friendly, but with the help of a handy mobile plugin described below, it can be optimised for mobile devices. By installing this mobile extension your wordpress blog becomes mobile friendly, and all your previous blog postings become immediately mobile-accessible with a minimum effort on your part.

In this tutorial we assume WordPress has already been installed. By installing the WordPress Mobile Plugin your WordPress installation becomes instantly mobile friendly. That is, all your previous postings are immediately accessible by mobile devices. In addition, your blog will also conform to the dotMobi compliance guidelines.

WordPress Mobile Plugin

The WordPress mobile plugin used here was originally written by Alex King [http://alexking.org]. It offers reading and commenting functionality for mobile devices. We have modified the plugin in a number of ways:

  • The plugin has been modified to use the WURFL device repository for switching between mobile and desktop versions
  • WordPress will now send XHTML MP as default for unknown user-agents, in compliance with dotMobi style guides
  • The markup outputted by the mobile edition has been cleaned up so that it is now well-formed XHTML Mobile Profile

Installing the Plugin

The first thing to do is download the plugin package from here. Included in this archive are the WURFL files, and the plugin files. Unpack the archive in your WordPress plugins directory ([WORDPRESS_ROOT]/wp-content/plugins/). This will create a new directory wp-mobile-wurfl, and two files: wp-mobile.php, and wp-mobile.css. Move the two files (wp-mobile.php, and wp-mobile.css) to the [WORDPRESS_ROOT] folder in your web directory.

Next, you need to log into WordPress and click on "Plugins" in the top menu. On the next page locate "WordPress Mobile Plugin with WURFL" in the list, and click on the "Activate" link on the right hand side of the screen (see illustration).

Activate plugin

The final step is to update the WURFL cache. This is necessary to speed up access to the WURFL data. After installing the plugin, there is a new panel in the Options menu of the WordPress admin area. So to update the WURFL cache, you navigate to the Options->Mobile Plugin panel in the admin area. There is a single checkbox in this panel. Check the box, and the click the Update Options button. When this process is complete (it may take a few moments), you are done!

Update WURFL cache

Going mobile with WordPress

So now all the hard work is done, happy blogging.

Special thanks to Alex King (http://alexking.org) for creating the original plugin.

Ruadhan O'Donoghue
UPDATE: A number of users have reported that this plugin damages their search engine rankings by defaulting to delivering mobile content to the search engine bots. Please bear this in mind before installing the plugin.
AttachmentSize
wp-mobile-wurfl.tar.gz332.53 KB

Posted by ruadhan on 19 Sep 2006

ruadhan's picture

Mobile Web Guy & Head of Engineering at dotMobi

@rodono
+Ruadhan O'Donoghue

Posted by Tomsey 6 years ago

Is there a link to this plugin to try it? Thanks.

Posted by yeswap 6 years ago

The plugin sounds great. But I don't see the download link. Where can we download it from?
Thanks,

Dennis

My blog - It's all about the mobile web.
wapreview.mobi
wapreview.com/blog

My blog - It's all about the mobile web. wapreview.mobi, wapreview.com/blog.

Posted by ruadhan 6 years ago

I've added the link above. All feedback appreciated.

Ruadhan

Ruadhan O'Donoghue
dotMobi

Posted by ruadhan 6 years ago

Most common problems with this plugin are due to file permissions. For instance when you untar the archive the correct file permissions may not be preserved. The main things you should check for are:

  • [worpress_root]/wp-content/plugins/wp-mobile-wurfl/data/ directory should be writeable
  • [worpress_root]/wp-content/plugins/wp-mobile-wurfl/data/wurfl.log file should be writeable

Ruadhan

Ruadhan O'Donoghue
dotMobi

Posted by Tomsey 6 years ago

posted wrong section

Posted by Tomsey 6 years ago

I'm using it at:

Developing.mobi

Thanks for all your help Ruadhan.

Posted by ewhisper2 6 years ago

When I try to update the XML file, I receive hundreds of lines of errors.

Mostly, they are permission denied errors from this plugin. I've changed the permissions so that the plugin could write and execute as necessary - however, the errors still persist.

Ideas?

Posted by rxbbx 6 years ago

Will this plugin be maintained. Are there new updates? Is this also compatible with 2.1.?

Regards
Rxbbx

Posted by blacknight 6 years ago

The download link gives a 404 :(

I was hoping to get my personal blog working properly, as the original WP plugin doesn't work that well

Posted by lazyleo 6 years ago

Well i have read a few questions about this plugin and still not able to find a answer to this, if you use this plugin correctly google and yahoo index only the the mobile version of the blog and if you try to incude the disallow in the robots.txt the search engines do not index the blog all together.

What is the solution to this?

Thanks.

Posted by ping 6 years ago

I am using Firefox and the above download link takes me to the front page of the site. When I try to save it, it saves the front page. Whats with that?

Posted by admin 6 years ago

Ping,

Thanks for letting us know. This is working now. We had left out the .gz version of the file somehow in the migration to the new server.

Ronan

Posted by ping 6 years ago

Pleasure, glad I could have helped in some small way.

Posted by ping 6 years ago

I installed it now and its working beautifully. First time I am using Wordpress and it was so easy to install and get working. Checked it out now on my Series 40 Nokia phone excellent. My link is below. Thanks for this guys.

http://www.outdooradventureclub.co.za/blog

Posted by Richard Hearne 5 years ago

Hi Ruadhan

Unfortunately your implementation will return mobile content to Googlebot (and I assume othe SE bots) which means that your plugin is likely to kill search engine rankings.

And if you are stupid like me and forget to copy the noted files to the root you are going to return a 302 then a 404 to Googlebot. End result your site is inaccessible to Google and your rankings will be killed. Happened to me. Devastated my rankings.

Even had I correctly copied the files across the 302'd content would still likely have a very negative impact on my rankings. I think you're going to have to revisit how you determine who to server mobile content to.

Best rgds
Richard

Posted by ruadhan 5 years ago

Hi Richard,

Thanks for your comments. This has been mentioned previously, but I have not had a chance to address it. If it is simply a matter of changing the mobile switching algorithm then I will try to update it asap.

Thanks
Ruadhan

Ruadhan O'Donoghue
dotMobi

Posted by Richard Hearne 5 years ago

Ruadhan

In your implementation are you parsing the wurfl_patch.xml file? I'll dig through the code if I have time, but I tried including the latest web_browser_patch (renamed to wurfl_patch.xml) but the plugin still served up mobile content to the bots.

I know this might sound drastic, but until you can address this I think in might be better to advise people not to use the plugin if they have a public site which relies on search traffic. In particular the paging menchanism on the mobile version is going to lead to indexing issues.

Best rgds
Richard

Posted by ruadhan 5 years ago

Hi Richard,

Yes this is a good point - when the WURFL is updated, I am not re-parsing the patch file (as far as I remember). I will add a note regarding your SEO concerns on this. In the meantime, there are a number of other wordpress mobile plugins that I am aware of that you might like to try, including Andy Moore's and Alex King's. Neither relies on WURFL, and Andy Moore claims his is dotMobi compliant.

I will address the SEO problems you've mentioned with this plugin as soon as I get a chance.

Ruadhan

Ruadhan O'Donoghue
dotMobi

Posted by blacknight 5 years ago

Ruadhan

Like Richard I've found that the plugin is killing my search engine rankings :(

Both Yahoo and Google have reindexed my site with wp-mobile.php

I installed Andy's plugin as a temporary measure and have symlinked wp-mobile.php to index.php, so the bots should see the full version and his UserAgent matching should kick in where applicable. It's a filthy dirty hack, but I don't know what else to do for the moment...
I'll probably do some .htaccess rewriting stuff once I have the energy

Michele

Posted by mikerowehl 5 years ago

At Mowser we've made an alternate version of a mobilizer plugin that sends mobile users through Mowser:

http://wordpress.org/extend/plugins/mowser-wordpress-mobile/

We keep the install footprint very small by just detecting mobile users, will swap in mobile advertising for you, allow you to put the mobile version at your own domain if you like (ie m.example.com or example.mobi) by using some DNS settings, take care of potential SEO issues by disallowing spiders to the mowser.com version of the content, and allow you to provide your own stylesheet for the mobile version if you want. We also mobilize all outbound links.

There's more info about Mowser itself at the publisher wiki: http://pub.mowser.com/wiki/

- Mike

Posted by Xeus 5 years ago

Did you ever sort the SEO issues out for this?

We have a site we are looking at WordPress for, but can't go if it will kill our Google presense.

Posted by James Pearce 4 years ago

Bug, guys. It gets tricked by IE8 into giving the mobile version.

Posted by godsofchaos 4 years ago

Way too risky if its a matter of SEO.

There are many plugins that you can now use for wap version of sites, however none of them works with hyper cache. In my Nokia blog
I am facing this issue severely and will be really thankful if any of you can help me find a plugin or the hack which will work when Wordpress Hyper Cache, or Super Cache is active. Without them my hosting owner will surely kick me out. :(

Really need this solution.

Nokia S60 Symbian Themes Developer

Posted by davorr 4 years ago

I used this plugin on a unix server and everything was really ok.
Then I tried to install it on a windows 2003 server (migrated exactly the same wordpress installation) and the following problem has occured:

No posts are being displayed.

I see the categories, the navigation - everything in the mobile look&feel, but no posts. Just the titles of the posts, but when you click them, no posts.

Why does this happen? Thanks in advance for your respond.

Posted by godsofchaos 4 years ago

Wordpress and Windows server really does not go together well. You should switch to Linux and apache if you are planning to implement wordpress as the primary platform.

Also, in Windows Server you will have to update the permalinks manually when you install wp even if your permalinks are set to default "????"

What you are seeing is probably a permalink issue and not a plugin issue.

Cheers.

Nokia S60 Symbian Themes Developer

Posted by eluminouschaitu 2 years ago

Hello, There are many plugins that you can now use for wap version of sites, however none of them works with hyper cache. In my Nokia blog
I am facing this issue severely and will be really thankful if any of you can help me find a plugin or the hack which will work when Wordpress Hyper Cache, or Super Cache is active.

Posted by spotworks 2 years ago

yeswap wrote:
The plugin sounds great. But I don't see the download link. Where can we download it from?
Thanks,

Dennis

My blog - It's all about the mobile web.
wapreview.mobi
wapreview.com/blog

Ruadhan, I already have a mobi domain name sitting and waiting to be used. If I install the wordpress mobile plug in with my blog, does the the mobile site site in a different directory where I can point my mobi domain? (BTY, in your original post, your urls had an extra character which rendered them a dead like. I fixed them in this quote)