草窟设计 – 姚迎迎
  • 首页
    • On Trip
    • 心情日记
    • 代码人生
    • 前端技术
    • Linux-Server
  • 关于站长
    • 新浪微博
    • 我在人人网
    • About Me
    • My Google
    • My Flickr
  • WordPress
    • Qtranslate Flags Setting
  • 案例
    • MD5 加密
  • Div & Css
  • 分类目录

wordpress

Home > Blog > WordPress Feeds 定制

WordPress Feeds 定制

Time Posted on 9, 十一

The Feed templates are located in the /wp-includes/feed-{type}.php files and include formats for rdf, rss, rss2 and atom. 这儿是一些默认的 rss 模板,定制自己的模板时可以参照。

WordPress Upload New Media “HTTP error”

Time Posted on 26, 十

版本是 3.2.1 在原本的服务器上运行无错,移植到新的服务器就有这个问题,大概就是服务器配置的缘故了。 官方上也相关的文章。http://wordpress.org/support/topic/25-imagemedia-uploader-problems 是apache Mod_Security 的缘故。如果你能够修改你服务器的httpd.conf文件的话,删除里面关于mod_security部分就可以了。不过多数wordpress玩家是没有权限修改这个文件的,那就只好修改.htaccess文件了。在.htaccess文件里面加上一行: <IfModule mod_security.c> SecFilterEngine Off SecFilterScanPOST Off </IfModule> 这样就可以关闭 Mod_Security。

WordPress UTF8 中文截取

Time Posted on 17, 十

UTF8 中文截取 其中对字符串预先 __() 处理,可以从 qtranslate 中取出当前语言部分然后进行截取。 function utf8Substr($str, $from, $len) { if ($len == 0){ return __($str); }else{   return preg_replace('#^(?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$from.'}'. '((?:[\x00-\x7F]|[\xC0-\xFF][\x80-\xBF]+){0,'.$len.'}).*#s', '$1',__($str)); } } //use utf8Substr($recent["post_title"],0,14); function utf8_trim($str) {   $len = strlen($str);   for ($i=strlen($str)-1; $i>=0; $i-=1){ $hex .= ' '.ord($str[$i]); $ch = ord($str[$i]); if (($ch & 128)==0) return(substr($str,0,$i)); if (($ch & [...]

WordPress 如何修改密码保护表单的文字说明

Time Posted on 11, 十

This piece of code should do it for you. Place this code in your theme’s functions.php file. You can add customizations to the custom_password_form() function – just don’t use print or echo – the function must return a value. <?php add_filter( 'the_password_form', 'custom_password_form' ); function custom_password_form() { global $post; $label = 'pwbox-'.( empty( $post->ID ) [...]

wpautop WordPress 文章格式化

Time Posted on 12, 八

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) (optional) Preserve line breaks. When set to true, any line breaks remaining after paragraph conversion are converted to HTML . Line breaks within script and [...]
« Older entries
Newer entries »

请我喝杯奶茶咯~

若觉得我的服务器还不错的话~

Ad

凯特葛妮亚~

  • Featured Stories (13)
  • Linux-Server (41)
  • On Trip (21)
  • 代码人生 (79)
    • Drupal (2)
    • Wordpress (5)
  • 前端技术 (27)
    • Jquery (9)
  • 心情日记 (65)
    • Have a Joke (7)
    • 随便写写 (21)
  • 电脑硬件 (8)

最近扯的蛋

  • 昨夜梦回
  • 这是来自wordpress手机客户端的文字
  • .htaccess 完全手册
  • 2012年的第一天,我在厦门
  • 让Qtranslate 支持 Custom Taxonomy
  • 去除 wordpress 链接中的域名
  • 清理wordpress菜单里的 id 和 class
  • Drupal7 获取自定义字段的值
  • WordPress 只显示当前用户的文章
  • 怎么让WordPress自定义菜单在新窗口打开
  • 7步在 Drupal 7 中建立 Nivo Slider
  • 探测设备系统
  • 关闭 WordPress 自动更新
  • WordPress Feeds 定制
  • WordPress Upload New Media “HTTP error”
  • PHP数据类型转换
  • WordPress UTF8 中文截取
  • WordPress 如何修改密码保护表单的文字说明
  • Qtranslate With function __() and _e()
  • Ubuntu 163 Sources List

一堆破图

桃花 桃花 桃花 桃花 照片 093_副本 evita evita evita evita

坑爹啊~

2012 年三月
日 一 二 三 四 五 六
« 二    
 123
45678910
11121314151617
18192021222324
25262728293031

在过去的时光里

  • 2012 年三月 (1)
  • 2012 年二月 (4)
  • 2012 年一月 (2)
  • 2011 年十二月 (4)
  • 2011 年十一月 (3)
  • 2011 年十月 (4)
  • 2011 年九月 (1)
  • 2011 年八月 (6)
  • 2011 年六月 (2)
  • 2011 年五月 (9)
  • 2011 年四月 (2)
  • 2011 年三月 (2)
  • 2011 年一月 (7)
  • 2010 年十二月 (8)
  • 2010 年十一月 (4)
  • 2010 年十月 (5)
  • 2010 年九月 (4)
  • 2010 年八月 (7)
  • 2010 年七月 (8)
  • 2010 年六月 (2)
  • 2010 年五月 (3)
  • 2010 年四月 (6)
  • 2010 年三月 (7)
  • 2010 年二月 (5)
  • 2010 年一月 (2)
  • 2009 年十二月 (7)
  • 2009 年十一月 (7)
  • 2009 年九月 (10)
  • 2009 年八月 (18)
  • 2009 年七月 (15)
  • 2009 年六月 (17)
  • 2009 年五月 (19)
  • 2009 年四月 (14)
  • 2009 年三月 (25)

一切都是浮“云”

ajax Apache apt-get Chinajoy CSS Debian dedecms error firefox HeidiSQL htaccess html IE6 javascript jQuery lamp linux mail mod_rewrite mysql mysql5 MySQL Front php phplist phpmyadmin thinkphp Ubuntu wordpress WordPress Theme 京腔 代码 年轻的时候很傻很天真 户外 摄影 数据库 旅行 李玉刚 歌词 歌词翻译 盛世霓裳 示例 翻译 芳华绝代 视频 音乐

像新浪一样SB

分析在此~

png png
Logo

© 2012 Yao Yingying