╋艺 镇╋╋网站网络|程序语言|Flash╋┣◇网站建设&Web语言 → Fatal error for function: get_post_format () (15 posts)


  共有20489人关注过本帖树形打印复制链接

主题:Fatal error for function: get_post_format () (15 posts)

美女呀,离线,留言给我吧!
admin
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 司令 亲民勋章
等级:管理员 帖子:3027 积分:27521 威望:0 精华:7 注册:2003/12/30 16:34:32
Fatal error for function: get_post_format () (15 posts)  发帖心情 Post By:2011/8/22 13:52:19 [只看该作者]

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



  
平面设计、网站建设、三维动画、视频制作 联系QQ:114103945  回到顶部
美女呀,离线,留言给我吧!
admin
  2楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信 司令 亲民勋章
等级:管理员 帖子:3027 积分:27521 威望:0 精华:7 注册:2003/12/30 16:34:32
  发帖心情 Post By: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


  
平面设计、网站建设、三维动画、视频制作 联系QQ:114103945  回到顶部