以文本方式查看主题

-  ╋艺 镇╋  (http://wdystv.com/bbs/index.asp)
--  ┣◇网站建设&Web语言  (http://wdystv.com/bbs/list.asp?boardid=4)
----  Fatal error for function: get_post_format () (15 posts)  (http://wdystv.com/bbs/dispbbs.asp?boardid=4&id=3147)

--  作者:admin
--  发布时间:2011/8/22 13:52:19
--  Fatal error for function: get_post_format () (15 posts)

I just installed WordPress using Dreamhost one-click advanced install.

I deleted my example comment, but my example post is still published.

When I load my site:

http://www.clicktruemedia.com/

I get this error message:

Fatal error: Call to undefined function get_post_format() in [...]wp-content/themes/twentyten/loop.php on line 60

Here\'s line 60 of loop.php:

<?php if ( in_category( _x( \'gallery\', \'gallery category slug\', \'twentyten\' ) ) || \'gallery\' == get_post_format( $post->ID ) ) : ?>


--  作者:admin
--  发布时间:2011/8/22 13:52:56
--  
I just had the same problem today until I edited the hello world post. Now it seems to be working.

-----------------------

The post format is a new feature that is being introduced in WordPress 3.1. Are you sure you didn\'t accidentally install the 3.1 version of TwentyTen with the 3.0.1 version of WordPress?

http://codex.wordpress.org/Post_Formats



-----------------------

http://wordpress.org/support/topic/fatal-error-for-function-get_post_format