Batch Plug-in Update in Word Press
When Word Press introduced one click upgrade for pluggins, it was like Christmas in July. But this time maybe on the actual Christmas or perhaps slightly earlier with the release of Word Press 2.9, we will now be able to upgrade multiple pluggins with one click from our WordPress Admin Panel.
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:
WordPress Recycle Bin / Trash
One useful thing most desktop operating systems have is the trash bin or recycle bin. WordPress has now added similar functionality; instead of permanently deleting posts, pages, and the comments, 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 );
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.
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. However, a quick way to add it now is to visit your theme’s functions.php and add the following code:
add_theme_support( ‘post-thumbnails’ );
Once you choose the thumbnail, you display it on the template using the following code:
<?php the_post_thumbnail( ‘thumbnail’ ); ?>
Extend User Contact Info
The 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.
You can display these on author profile page by using the normal $curauth variable or the_author_meta variable.
New Excerpt Filter
Up till WordPress 2.8.6, if you added 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. Implement this by opening 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 version 2.9 page in the codex.
Tweet This