Skip to main content

sogg chen's Library tagged wordpress   View Popular, Search in Google

Jun
16
2009

WordPress 2.3 introduces a new taxonomy schema. Any plugin that queries against the old WordPress 2.2 table will break horribly. Plugins that use the category API should be fine.

This new schema replaces the categories, post2cat, and link2cat tables with three new tables that are more flexible.

wordpress taxonomy schema database 指南

WordPress provides a class of functions for all database manipulations. The class is called wpdb and is loosely based on the ezSQL class written and maintained by Justin Vincent.

class wordpress datebase wpdb

在wordpress建立的博客留言评论时,使用豆瓣的ID登录

wordpress 评论 插件 豆瓣 auth

Jun
9
2009

A directory of all of WordPress’ hooks
有详细的解释

wordpress 指南 hooks 开发 howto

当制作 WordPress 的插件,有一点必须快速掌握的东西就是 WordPress 的主循环和全局变量。一旦掌握之后,插件作者就能知道哪个变量是可以访问的,而哪个不能。

使用某些 WordPress Action 和 Filters,可以很容易知道在主循环中哪里执行了哪些代码。然而有时你不想使用 action 或者 filter 而只想在主循环中调用模板标签。当这么做的时候,你需要确信对你尝试去访问的全局变量和想实现的结果都要非常了解。

在这篇日志,我将剖析 WordPress 主循环以便你能对哪些变量可以被模板标签(在 WordPress 主循环中函数调用)调用有个更好的理解。

wordpress 开发 loop howto

Apr
24
2009

wordpress的相册插件,可以调用picasa web的相册,在blog里全屏查看,很酷

wordpress plugins gallery picasa

Jan
14
2009

PHP程序将百度空间的日志和评论转换到WORDPRESS上

wordpress 搬家 百度空间 php

原来Wordpress 自定义字段的id和Value是存储在postmeta表中。
“WordPress 使用这个表去存储附件的额外信息,这些信息不适合 wp_posts 表(附件的路径,缩略图信息,等等)。另外,这个表还可以用来存储自定义字段(custom field)的名字和值 — 你可以在日志编辑器下面看到自定义字段框。”

wordpress 数据库结构 What

Jul
16
2008

WordPress 2.6新添版本修订功能,很不错,但不一定都需要。通过WP_POST_REVISION变量,可以选择是否屏蔽该功能,或者定义要保存的修订版本。

wordpress 技巧 修订

    • 原本准备开发一个插件屏蔽这个功能,后发现其实 WordPress 已经留了接口。在 wp-setting.php 中新增了一个变量 WP_POST_REVISIONS,把它设置为 false 就可以屏蔽 WordPress 日志修订功能。在 wp-config.php 添加的代码如下:

       
      define('WP_POST_REVISIONS', false); 
       

      关于 WP_POST_REVISIONS 这个变量的详细设置为:

       
      • true(默认)或者 -1:保存所有修订版本
      • false 或者 0:不保存任何版本(除了自动保存的版本)
      • 大于 0 的整数 n:保存 n 个修订版本(+1 只保存自动保存版本),旧的版本将被删除。
Jul
14
2008

用的SQL搜索,那么应该不会被过滤掉HTML Tags。有些查找替换,是不允许查找包含HTML Tags的字符串的。有机会试试

wordpress 插件 替换

  • 这个插件使用的是 SQL 搜索,搜索的文本是大小写敏感的,所以你要注意你的你要搜索和替换的内容。
  • 有非常多的优秀的插件能够进行区分大小写搜索和使用正则表达式进行搜索。然而这个绝对是一个不错的,因为它的易用性和很好的完成工作。
Jul
10
2008

WP Vault is a plug-in for WordPress.

WP Vault allows you to upload and store any type of files. The files can be attached to any post or pages.

plugins wordpress files

1 - 15 of 15
Showing 20 items per page

Diigo is about better ways to research, share and collaborate on information. Learn more »

Join Diigo
Move to top