Ubuntu 163 Sources List

Ubuntu 10.10 [code] deb http://mirrors.163.com/ubuntu/ maverick main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-security main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-updates main restricted universe multiverse deb http://mirrors.163.com/ubuntu/ maverick-proposed main restricted universe …

wpautop WordPress 文章格式化

Changes double line-breaks in the text into HTML paragraphs (<p>…</p>). 把文章里的 2次换行 格式化成 html 段落(<p>…</p>). $foo (string) (required) The text to be formatted. 需要格式化的文章。 Default: None $br (boolean or integer) …

Get Labels for Advanced Custom Fields

新版本的ACF已经具备这个功能,可以参考 get_field_object() Advanced Custom Fields for wordpress 是一个不错的插件,但是api 里只有 get fields,却没有get labels,对此,作者认为没有必要(作者的论坛上表示的)。一般情况是真的没必要。但是有会更好! 在配合 WPML 做多语言网站的时候就大有用处了,可以设置不同的 Field Label 用相同的 Field Name,这样就可以实现切换语言的时候自动切换 Field Label,而用相同的 get field 获取不同 label 下面的值。 吧下面的代码放进header.php 或这 function.php …

Post Formats of WordPress

Post Formats 是wordpress 3.1 引入的新更能,直观的,你可以在写文章页面看到 然后再single.php模板文件里可以看到这样一行代码 [code]get_template_part( ‘content’, get_post_format());[/code] 来指定这篇文章使用哪个模板文件。 在/wp-includes/post.php 里面,可以看到系统预设的几个格式。 [code] 5126 function get_post_format_strings() { 5127 $strings = array( 5128 ‘standard’ => _x( ‘Standard’, ‘Post format’ ), // …

正式开始 WordPress 了!

2011年6月10日,离开了服务了近两年的老东家,13号进了新东家。朋友调侃说,衔接得真好,一点不浪费。 2个月了。每天都在 WordPress 这样一个博客上挖掘潜能,实际上,这是我第一次完全投入的做 Wp 的二次开发。 从没像今天一样看得到 WordPress 的强大,真的,一切皆有可能。 2011/8/9,2个月,利用 WordPress 做了很多事情,我真的应该更早一点吧目光专注在这上面~