New Features in Wordpress 2.9: A brief Introduction

December 6th, 2009

Image Editor

In WordPress 2.9 whenever you upload an image, you can edit it using the edit image option.

The image editor contains several useful functions such as image cropping, image rotation and image flipping. In addition, you can also undo and redo your actions.
Post Trash Can

Wordpress 2.9 provides a very useful feature, called Post Trash Can. We all are very well aware of this feature and we use it for emails. However, you can use this feature for posts and comments from wordpress 2.9.

wp2-92

The new Trash feature completely replaces the old Delete functionality, when you click on the Trash link, the status of the post will be moved to “Trash”, and can be restored for a certain time limit, 30 days by default.

To view all the posts or page in Trash, just visit the Trash menu in the top of the Edit Posts or pages section.

You can also limit the number of days the trash can/should hold deleted posts by adding the following line to your wp-config.php:

define(’EMPTY_TRASH_DAYS’, 7);

Change the number 7 to the number of days you want to store deleted copies in the trash can.
Restoring Deleted Posts

If you deleted posts by mistake, you can always get it back by visiting the Trash menu and clicking on the restore link.
Disabling Trash Can Feature in WP 2.9

To disable trash feature, just add the following code to wp-config.php: define (’EMPTY_TRASH_DAYS’, 0);

Once you do that, you will see Delete Permanently option instead of Trash.

wp2-93
Embedding Videos and Images with oEmbed

oEmbed provides media providers with a way to provide additional information about a media used from their sites you are adding it from. For more information on this visit the oEmbed site.

In short, you can now embed videos directly into WordPress by providing the URL of the video, instead of having to add the entire embed code into it.

oEmbed support is enabled by default, you can disable it by visiting Settings -> Media.
Tackling Duplicate Content With rel=”canonical”

WordPress 2.9 adds a new tag to the page header which specifies the canonical path to the actual content. Using this tag is highly suggested if you want to tackle duplicate content.
Automatic Database Repairing

WordPress 2.9 introduces a new feature which can help you to automatically repair database problems. This can come in very handy as not many users usually manage their database or optimize them.

To setup Automatic DB repairs in WP 2.9, you will need to add a new constant to your wp-config.php file as follows:

define(’WP_ALLOW_REPAIR’, true);

Once you do that, WordPress will automatically repair the DB periodically

How to set expiration date for a post using custom fields?

November 18th, 2009

Custom fields provide  a strong tool for developers to make it more user friendly and customizable.

Today, we will see how we can assign an expiration date to a post, so the post will disappear after a particular date:

1)      Change the default loop in your index.php file as mentioned below:


 

 

2)      Now, when you add/edit a post, add a custom field expiration and assign the date as value(with the format mm/dd/yyyy 00:00:00). The post will disappear after that date from the home page.

Note that if you do not assign the custom field to a post, that post will not appear on your home page. This code needs some modification for the same.

Introduction to Wordpress Filters

November 18th, 2009

Introduction to Wordpress Filters

What is a Filter?

Filters are functions that WordPress passes data through, at certain points in execution, just before taking some action with the data (such as adding it to the database or sending it to the browser screen).

Filters passed data between database and browser. Most inputs and outputs in wordpress need to pass through at least one filter.

You can add your own filter to a plugin or theme for special purpose.

The basic steps to add your own filters to WordPress (described in more detail below) are:

  1. Create the PHP function tha? filters the data.
  2. Hook to the filter in WordPress, by calling add_filter()
  3. Put your PHP function in a plugin file, and activate it.

We will have more look on how to create a filter in next articles.

WordPress 2.8.6 Released – Security Update

November 14th, 2009

2.8.6 fixes two security problems that can be exploited by registered, logged in users who have posting privileges.

Check WordPress Plugin Compatibility before Upgrading/Installing

November 3rd, 2009

Check WordPress ?lugin Compatibility before Upgrading

Now, wordpress users can check if the plugin is compatible with their wordpress version before installing the plugin itself. This feature is in testing (Beta) and has been implemented for several plugins in the wordpress directory.

You can check this for any version of wordpress and the plugin itself. Check the screen capture here:

wp-exa1

Introduction to Podcast in Wordpress

November 3rd, 2009

What is podcasting?

Podcasting is distributing audio or video content via RSS 2.0, or Atom. Podcast clients such as iTunes, Juice, or CastPodder(linux) allow listeners to subscribe to your RSS/Atom feed and automatically download your content to their portable audio players as it becomes available.

Podcast in Wordpress: (wordpress.com)

Create audio or video that you want to share (usually MP3 or MP4)
Upload the file to a server
Link to the file in a post in your weblog
Wordpress automatically Includes a link to the file in your RSS/Atom feed
Listeners

After the Deadline, Language Checking Software Used by WordPress is Now Open Source

November 2nd, 2009

After the Deadline, Language Checking Software Used by WordPress is Now Open Source

If your blogging platform of choice is WordPress, then you’ve no doubt noticed recent improvements to the way it catches spelling, style, and grammatical errors. That’s thanks to acquisition of After the Deadline, a language checking software package designed for WordPress and TinyMCE.

The plugin’s creator, Raphael Mudge, announced today that he has released the source code for After the Deadline (AtD) under the GNU General Public License. “We

What is a wordpress theme framework?

October 29th, 2009

What is a wordpress theme framework?
A theme framework is a theme that is designed to be a flexible foundation that can serve as a parent theme for building child themes. The use of theme framework may ease theme development by reducing the volume of work which may be needed in creating a backbone for your theme.

Available Frameworks

An Introduction to Wordpress Action Hooks

October 29th, 2009

An Introduction to Wordpress Action Hooks

What is an