[29 May 2009] Turned out I have been Aril Fooled. WordPress 2.8 should be released real soon (31st May according to the WordPress Trac). Added 2 more new functions: comments_open and pings_open.
With the release date for WordPress v2.8 scheduled on 1st April, I believe the theme codes are more or less stable. Not much changes between v2.7 and v2.8, thankfully. The current themes should work just fine without any modifications on v2.8. Basically 4 new functions were introduced: body_class(), automatic_feed_links(), comments_open(), pings_open().
bodyclass()
Found in header.php
<body <?php body_class(); ?>>
Display css classes for the body element.
automatic_feed_links()
Found in functions.php
automatic_feed_links();
This will automatically generate all the relevant feed links. You may need to remove current hard-coded feed links in header.php e.g
<link rel="alternate" type="application/rss xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
comments_open()
Found in single.php and comments.php
if ( comments_open() )
Checks whether the current post is open for comments
pings_open()
Found in single.php
if ( pings_open() )
Checks whether the current post is open for pings
Browse and Share
» Subscribe to Feed» Leave a Comment
Related Posts:
» Sneak Peek: iPin Theme – Pinterest Inspired Design
» Upcoming WordPress Theme: Food Recipe
» Theme Update: OneNews 2.0
» Newer Post: WP Theme: Video Flick
« Previous Post: WP Theme: Woogle The Google Search Engine Clone












many plugin not support Wp 2.8?
Too early to tell for plugins, but my plugins should work. Keep updated on the compatibility here.
I guess those functions are not mandotory for theme creating.
I think you kena con alrady … now near June still no sign of WordPress 2.8
Haha.. now I know why it was scheduled for release on 1st Apr.
Why can’t they just get it right and leave it alone?
This body_class() stuff was never there when I needed to generate dynamic body classes for one of my client. I did manage those classes back then in 2008, by mimicking the way drupal output the body_class. Thanks for the info. I shouldn’t worry anymore then
wordpress 2.8 seems to be going great for me, other than a few plugin issues, i typically deactivate them at various times, helps increase the PHP script memory.