在query_posts中使用LIKE
- Wordpress2010-10-09 09:22
查看了wordpress文档,发现query_posts不支持like, 解决办法如下:
代码如下 private function __construct() { add_filter('posts_where',array(&$this,'customerWhere'
代码如下 private function __construct() { add_filter('posts_where',array(&$this,'customerWhere'
Copyright © 風之紫色, All Rights Reserved.Theme by 風之紫色.Style as Facebook.
Time:0.03297s,Mem1.388064M
FZ 1.0 Author : 風之紫色
Time:0.03297s,Mem1.388064M
FZ 1.0 Author : 風之紫色


