Most Notable Features in WordPress 2.9

133

Long awaited WordPress 2.9 has been finalized by the developers and it is put out for download as a release candidate. Some of you might be wondering what is a release candidate. A release candidate is when the developers feel that all features that were to be added during the beta version are added, and this version could potentially be made official except it can use some extra testing for bugs. This is why as a contributing member to the community, everyone should download the release candidate and test run it to see if everything works fine. If your site is using plugins, then you should see if they are compatible with the new version and help the authors and other users by letting them know whether it works or not. You can do this by looking at the plugins page in the directory. (Example)

WordPress is really a community based script and without everyone’s help, suggestions, and contributions, it would not have been possible to make everything work.

You may download the Release Candidate from this Link. Well if you don’t want to download it, then might as well check out all these cool features that are coming with this new release. Maybe this will change your mind or maybe blow your mind with what an amazing release this will be.

Batch Plugin Update in WordPress

When WordPress introduced one click upgrade for plugins, it was like Christmas in July. But this time maybe on the actual Christmas or perhaps slightly earlier with the release of WordPress 2.9, we will now be able to upgrade multiple plugins with one click from our WordPress Admin Panel. Check out the Screenshot below:

Batch Plugin Updates

Optimize/Repair Database Functionality

WordPress has added a new feature to the core which allows you to repair and optimize your database. In order to activate this function, you will need to add this line in your wp-config.php

define(‘WP_ALLOW_REPAIR’, true);

Once you have added it, you will now be able to run the script which is located at this URL:

http://www.yoursite.com/wp-admin/maint/repair.php

When you arrive to that page, you will see a screen like this:

WordPress Recycle Bin / Trash

Regardless of whether you are a PC user, or a Mac user, we have all had moments when we accidently deleted something really important. But good thing about the operating systems is that they have something where our trash is stored at. In PC its called a recycled bin, and in Mac it is called the Trash, regardless of what it is called, the fact that we can restore it is what matters. WordPress has now added a similar functionality for the posts, pages, and the comments. Instead of permanently deleting these, you can now trash it and then later on empty the trash once you are completely done with what you were doing. By default WordPress will empty the trash every 30 days, but you can change the time limit by simply entering the following code in your wp-config.php:

define( ‘EMPTY_TRASH_DAYS’, 10 );

Check out the Screenshot below, or simply just download the version and see it yourself:

Image Editor

The image editor is something that a lot of users were waiting for and it is included in this release. This editor will let you make simple changes such as cropping, rotating, scaling, etc. Check out the screenshot below to see how this feature would look.

Ability to add Post Thumbnails

You have probably seen many sites displaying posts on the homepage with a post thumbnail. Or many sites having the post thumbnail next to each post in their index. Before version 2.9, it was done through custom fields. In this release, you can simply add the thumbnail when writing the post and displaying it in the template is even easier.

In order for you to have this functionality available in the admin panel, you must have a theme that supports this function. It is really simple to add support for this feature and we will have a full tutorial on this coming up soon. You will need to visit your theme’s functions.php and add the following code:

add_theme_support( ‘post-thumbnails’ );

Once you choose the thumbnail, you can display it on the template using the following code:

<?php the_post_thumbnail( ‘thumbnail’ ); ?>

We will be posting a full guide for this function very soon because it is a very useful feature.

Extend User Contact Info

WordPress user profile page is quite old and many new networks have gain popularity such as twitter and facebook. Prior to version 2.9, it was really hard to add a custom field in the contact area, but thanks to Joost De Valk for his contribution, now this feature is available.

Simply open your functions.php and add the following function:

<?php
function my_new_contactmethods( $contactmethods ) {
// Add Twitter
$contactmethods[‘twitter’] = ‘Twitter’;
//add Facebook
$contactmethods[‘facebook’] = ‘Facebook’;

return $contactmethods;
}
add_filter(‘user_contactmethods’,’my_new_contactmethods’,10,1);
?>

This will add extra fields in your user profile pages. Check the screenshot below for example.

You can display these on author profile page by using the normal $curauth variable or the_author_meta variable. We will also be writing about these in the near future to explain full details how this function works.

New Excerpt Filter

Up till WordPress 2.8.6, when the user add the_excerpt code in the loop, it would display content with a 55 word limit and once the word limit was reached, it would add […]. With this new ability, You can now specify a function and control both excerpt word count, and the more text. All you have to do is open your theme’s function.php file and add the following code:

// Changing excerpt length
function new_excerpt_length($length) {
return 60;
}
add_filter(‘excerpt_length’, ‘new_excerpt_length’);

// Changing excerpt more
function new_excerpt_more($more) {
return ‘…’;
}
add_filter(‘excerpt_more’, ‘new_excerpt_more’);

All thanks goes to Ramiy for suggesting this feature.

oEmbed making Embedding Easier

Thanks to ViperBond007 that this feature was added to the core of WordPress 2.9. It is a specification that allows media providers like Flickr, YouTube and others to provide data for consumer applications like WordPress about media.

There are many many more features that are being included in this version. To see a full list check out this page.

Don’t hesitate and do your part for the community. Download the Release Candidate from this Link and start testing out all the features, so this version can be released even faster.