WordPress 3.6 的一大特色就是文章形式(Post Format)拥有了新的 UI 设计,主题作者可以通过模板函数来获取相关的结构化数据。那么,如果我们仅仅需要标准的文章形式,其他都是多余的,但是总显示那个文章形式UI,是不是有些碍眼?其实你可以隐藏它,或者干脆禁用它。
点击文章撰写页面右上角的“显示选项”,取消勾选的“文章形式”,就隐藏了:

或者你干脆点,将下面的代码添加主题的 functions.php 文件,就直接禁用了,连勾选项都没有了:
//Disable post format ui
add_filter( 'enable_post_format_ui', '__return_false' ); |
//Disable post format ui
add_filter( 'enable_post_format_ui', '__return_false' );
查看 WordPress 3.6 的主要更新功能
来源:
https://www.wpdaxue.com/disable-post-format-ui.html
微信公众号
手机浏览(小程序)
Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(): Failed to enable crypto in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57
Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_32477.jpg): failed to open stream: operation failed in
/mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line
57