IN Blogging

Upgrading to WordPress 2.7

posted Wednesday, December 24th, 2008

It seems like there is a new WordPress version every few months. This is great from one perspective i.e. we get great new features and it just keeps getting better. However, seeing from the other end of the spectrum it also means that we have to upgrade and make changes to our theme and make sure there are no broken plugins.

My last version was WP 2.5.1 and I finally upgraded to 2.7 last night. It was more or less a painless task since all of my plugins still work with 2.7. At most I had to update them via the one-click plugin update (it is more like 2 clicks but who’s counting ;-) ).

However, it did require some changes in my theme. I could have lived without these changes as my theme did not break … I just wanted some of the new features to work.

So here’s the low down on some of the main changes in WordPress 2.7 and how to deal with them:

Admin Interface

This has to be the biggest and best change yet. The admin interface has improved threefold. It is so much easier to get to the section you want to open. It is just faster and easier to use not to mention it looks great.

Dashboard Changes

Personally I always thought the dashboard real estate was always wasted. Not anymore. It now displays a hoard of important info including recent comments, drafts, statistics, etc and also lets you add a quick post directly from the dashboard.

dash1

Write/Edit Posts and Pages

You can now choose the boxes you want displayed on these pages as well as drag them around to suit your preference.

editpost2

Posts Index

You can choose which columns to display. Mouse over a post to display menu options like Edit, Quick Edit, Delete, View.

Quick Edit brings up some basic editing options for the post. Among other things you can change categories, add tags, edit the title, slug, etc as well as make a sticky post.

postindex

Sticky Posts

As mentioned above, the quick edit option lets you mark a post as sticky so it stays at the top of your blog. However, one small change needs to be made to your theme regarding this.

Find your post loop in index.php, archive.php, category.php. Look for the starting div … something like this:

<div id="post-<?php the_ID(); ?>" class="post">

Change this to:

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

You can also add one or multiple classes to this as follows:

<div id="post-<?php the_ID(); ?>" <?php post_class('class1 class2'); ?>>

The classes need to be separated by a space.

Better Comment Management

There are a lot of improvements related to comments. Not only can you perform bulk actions like marking as spam, deleting, etc, but you can finally reply to comments from within the WP admin interface. About time this feature got added. The only thing I miss is a threaded reply feature here.

A menu pops up when you mouse over a comment giving you the option to reply, edit, delete, etc.

comment

Threaded Comments and Comment Pagination

These two much needed features have been added to the core WP installation. No need for plugins to do either.

Go to settings and then discussion. Here you will find the option to set pagination and threading on along with the settings. You can choose the number of comments to display as well as how deep the threading should go.

Now for the harder part. These two features require a change in your comments.php file. This is all you need to display your comments:

<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>

<ol id="commentlist">
<?php wp_list_comments('type=comment'); ?>
</ol>

<div class="navigation">
<div class="alignleft"><?php previous_comments_link() ?></div>
<div class="alignright"><?php next_comments_link() ?></div>
</div>

You also need to add this line to your header.php file:

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

This is just the basic comment code which works with pagination and threading. You can style the basic code or add a call back function for extreme styling or in other words your own custom comment design.

I will try and cover that in another post.

Logout

If you have a logout option in your theme, make sure to replace the logut url with:

<?php echo wp_logout_url(get_permalink()); ?>

So these are…

…some of the changes in WP2.7. The goods news is that your old theme from WP 2.6 and 2.5 will still work as will most of the plugins. You only need to make the changes if you want to add the new comment features.

You can get WP 2.7 here.

  • http://www.bratwurst-recipes.com Bratwurst Recipes

    I love the new wordpress 2.7, in fact I love every new version of wordpress that comes out, and guess what they are already working on 2.8!! Man.. i wish all products were like that, constantly upgrading and getting better :)

    Till Then,

    Jean

    Blog Post: Easy to make grilled Beer Brats

  • http://www.webhosting-10.com Dr.best@hosting

    I use WordPress as well and I think the 2.7 control panel was a world better,I personally think It was revolutionary and innovative and most importantly easy to use and deploy.

  • http://www.thebeautyroom.co.uk/Elemis_Brand.htm marianne@elemis

    I’ve just found your excellent blog. You have some really useful articles in here – so I shall be back for another read when I get back from work. Keep it coming…

  • http://tech.spotcoolstuff.com/best-affordable-inexpensive/hdtv Spot@inexpensive HDTV

    I really like the new functionality of 2.7. But I have some serious mixed feelings about the left hand navigation. I’m not sure I like having to scroll down for things I used to have right there up at the top of the screen.

    Blog Post: Flying Cars Ready For Take Off

  • http://www.dotsndashes.com Erum Munir

    I see what you mean. But I’m finding the AJAX based menu so much easier to use as the sub menus are visible at the click of a button without reloading the page.

  • http://www.dotsndashes.com Erum Munir

    Oh yes, WordPress has come a long way. And it is amazing the way it is constantly being improved and upgraded. Seriously hats off to the WordPress team.

    I haven’t seen paid scripts improve so much and the fact that this is free makes it all the more commendable.

  • http://losefree.com Chelle@Lose Weight for Free

    I upgraded 2 of my sites to 2.7 to test it out…but the rest of mine are still running 2.6. There’s a couple of bugs I’m having issues with on the two sites I upgraded and until I get that straightened out don’t want to have the same problems on all of the sites.

    The new interface though is pretty nice, makes it a little easier to get straight to things…I’m sure if all of my sites were upgraded I’d be used to it and loving it more :)

    Blog Post: You Can Be The Biggest Loser

  • http://www.dotsndashes.com Erum Munir

    What kind of bugs? Plugin issues?

  • http://www.netspendguide.com Polly

    This is great post. Thanks for sharing.

  • Womens Air Jordans

    Thanks using it i upgraded mine it works well

    thanks

  • http://www.viprealtydfw.com Tanya@Frisco Tx Homes

    I remember when blogging was much easier. Looking at this new download and all of the things you can do now, give me a tired head…

  • http://www.dotsndashes.com Erum Munir

    …and we are up to 2.7.1 now. But the great thing is that you can now automatically upgrade WP by just clicking a link. This has made the whole process so much simpler. And you gotta agree the tons of new features are great :)

  • http://www.pbmissions.com gilbert@train horns

    This is a great upgrade for WP..it really helps the blogger customize wordpress easier for better and nicer blogsite..

  • http://knolik.com/article0003559.html engineer

    I do prefer to upgrade to new version only after few months after release, to avoid all silly-stupid bugs and similar problems…

  • http://www.minimalismi.com mr_rook

    I wish it was that easy… Instead, you click a link and what you get is a whole bunch of plugin incompatibility issues. That’s why I don’t intend to upgrade to 2.8 yet.

    By the way, the comment form you’re using is cforms or WordPress default? And where are the funny avatars coming from? :)

  • http://www.dotsndashes.com Erum Munir

    True. It is best to wait a while so not only do the bugs get ironed out but all the plugins get updated to work with the latest version, too.

  • http://www.dotsndashes.com Erum Munir

    The comment form is the default WordPress one. The avatars are now an option in WordPress that you can turn on.

  • http://www.executive-foundation.com/ Management Mentoring

    Great post. Are you planning on posting a similar post for version 2.8.3?

  • http://www.extend-yourlife.com extend-yourlife

    Really i think It is best to wait a while, so as not only do the bugs get ironed out but all the plugins get updated .

blog comments powered by Disqus