sogg chen's Library tagged → View Popular, Search in Google
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 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.
当制作 WordPress 的插件,有一点必须快速掌握的东西就是 WordPress 的主循环和全局变量。一旦掌握之后,插件作者就能知道哪个变量是可以访问的,而哪个不能。
使用某些 WordPress Action 和 Filters,可以很容易知道在主循环中哪里执行了哪些代码。然而有时你不想使用 action 或者 filter 而只想在主循环中调用模板标签。当这么做的时候,你需要确信对你尝试去访问的全局变量和想实现的结果都要非常了解。
在这篇日志,我将剖析 WordPress 主循环以便你能对哪些变量可以被模板标签(在 WordPress 主循环中函数调用)调用有个更好的理解。
wordpress的相册插件,可以调用picasa web的相册,在blog里全屏查看,很酷
原来Wordpress 自定义字段的id和Value是存储在postmeta表中。
“WordPress 使用这个表去存储附件的额外信息,这些信息不适合 wp_posts 表(附件的路径,缩略图信息,等等)。另外,这个表还可以用来存储自定义字段(custom field)的名字和值 — 你可以在日志编辑器下面看到自定义字段框。”
WordPress 2.6新添版本修订功能,很不错,但不一定都需要。通过WP_POST_REVISION变量,可以选择是否屏蔽该功能,或者定义要保存的修订版本。
-
原本准备开发一个插件屏蔽这个功能,后发现其实 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 只保存自动保存版本),旧的版本将被删除。
用的SQL搜索,那么应该不会被过滤掉HTML Tags。有些查找替换,是不允许查找包含HTML Tags的字符串的。有机会试试
-
这个插件使用的是 SQL 搜索,搜索的文本是大小写敏感的,所以你要注意你的你要搜索和替换的内容。
-
有非常多的优秀的插件能够进行区分大小写搜索和使用正则表达式进行搜索。然而这个绝对是一个不错的,因为它的易用性和很好的完成工作。
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.
Selected Tags
Related Tags
Top Contributors
Groups interested in wordpress
-
Wordpress Plugins
The best Wordpress plugins I...
Items: 35 | Visits: 326
Created by: Keith Crawford
-
WordPress Plugins
A list of useful wordpress p...
Items: 6 | Visits: 211
Created by: Suzannah Porter
-
MGMT 6250 Sp11
Items: 48 | Visits: 551
Created by: Bill Sodeman
Diigo is about better ways to research, share and collaborate on information. Learn more »
Join Diigo
