Want to know when there are new posts?

SUBSCRIBE VIA EMAIL

SUBSCRIBE VIA RSS

Dec 24th

Upgrading to Wordpress 2.7

Topics: All Things Wordpress

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.

Tags: , , ,



RSS Feeds

MiniSitePacks.com

95% Of Your Minisite Design Done For You--INSTANTLY?

This is a complete solution! We're Talking Full Blown Graphics--From Top To Bottom--At A FRACTION Of What You Would Pay A Designer! Find out more.

Related Posts

18 Responses to “Upgrading to Wordpress 2.7”


  1. 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

    • 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.

  2. Dr.best from hosting says:

    Reply

    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.

  3. marianne from elemis says:

    Reply

    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…

  4. Spot from inexpensive HDTV says:

    Reply

    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

    • 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.

  5. Chelle from Lose Weight for Free says:

    Reply

    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

    • What kind of bugs? Plugin issues?

  6. Polly says:

    Reply

    This is great post. Thanks for sharing.

  7. Womens Air Jordans says:

    Reply

    Thanks using it i upgraded mine it works well

    thanks

  8. Tanya from Frisco Tx Homes says:

    Reply

    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…

    • …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 :)

      • mr_rook says:

        Reply

        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? :)

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

  9. gilbert from train horns says:

    Reply

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

  10. engineer says:

    Reply

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

    • 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.

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

What Do You Think?

Enter your name as YourName@YourKeywords and YourKeywords will be used as the anchor link to your website. Psst this gives you Page Rank advantage.

  1. (required)
  2. (required)
  3. (required)

Comment Preview:

Just in case you wanna see.

You can also subscribe to comments via RSS Comments RSS