Tag Archives: wordpress

Create mobile and iPad versions of your WordPress site

WPtouch ProHaven’t you thought of creating mobile/iPad versions of your WordPress site? Is it worth the effort? If there just was an easy way to get them created and maintained. Well, there is..

WPtouch is a WordPress plugin for self-hosted WordPress websites that shows a well-designed mobile theme version of your site when visitors use their favorite touch mobile devices like the iPhone/iPod touch, Google Android phones, Motorola Droid, Palm Pre/Pixi, Samsung bada and Blackberry Storm & Torch devices. There is a free version and a paid Pro one. Read more »

iFrame problems in WordPress solved

There seems to be a know problem with iFrames in posts, starting with WordPress 2.2.1, which happens when editors use the internal WYSIWYG editor. A lot of users have reported this issue in frustration.

Initial saving of the content was fine, but subsequently editing and re-saving is would strip iFrame tags. A less than ideal solution was to avoid using the WYSIWYG editor and edit the post using HTML code. Now there is a Mozilla Firefox extension for those that don’t like write pure html code, called Xinha Here!.
Xinha Firefox addon
It’s a pretty cool add-on, that opens either in a new window or  in a bottom bar and let’s you use it as WYSIWYG editor until you’re done, then hit ok and save the article in WordPress. Just ensure that html editor is selected during this process, especially at saving.

I have to say, Xinha works like a charm and has more features than the built in wordpress WYSIWYG editor. For more info, check out xinha’s web site.

How To Create A WordPress Plugin Or Widget

This is a very simple Tutorial to create a Partner Links plugin.

A WordPress plugin is a snippet of code that extends on the functionality of WordPress, which can add to the inner workings such as an SEO extension for example, or it can add visual elements to the site, like a Facebook link. Widgets allow these code segments to be quickly and easily enabled or disabled within predefined areas such in newer themes, like a sidebar.

Prior to WP version 2, modifications and addons had to be hard coded into the source code or the theme. With today’s version and the ability to add plugins, we have a modular system of adding and removing functionality. This also makes upgrades a lot easier.

Here I show you how to create a very simple plugin, then enable it as a widget.

A simple WordPress plugin

Let’s create a new file in plugin inside your wordpress directory. Call it anything you like, I will use myplugin.php. Then we’ll add some code that creates partner links in your sidebar:

<?php
/*
Plugin Name: My Plugin
Plugin URI: http://www.itecsoftware.com/
Description: Partner Links WordPress Plugin
Author: Peter
Version: 1.0
Author URI: http://www.itecsoftware.com/
*/

function partnerLinks() {
echo “<h2>Partner Links</h2>”;
}
?>

Code inside /* */ are called comments, and in this case are used by WordPress to display information to the webmaster or whoever installs and configures it. The function partnerLinks will display the title, nothing more at this point. Save the file and you now should have a new plugin visible in the WordPress plugin section.

Read more »