Sql order by 按标题排序,不考虑';';在Wordpress中(wp_查询)
我目前有一个电视节目的插曲,其中有乐队演奏,例如:Sql order by 按标题排序,不考虑';';在Wordpress中(wp_查询),sql-order-by,wordpress,Sql Order By,Wordpress,我目前有一个电视节目的插曲,其中有乐队演奏,例如: 莫比 花花公子沃霍尔夫妇 怪人 我的wp_查询如下所示: $loop = new WP_Query(array('post_type' => 'episodio', 'cat' => '9', 'posts_per_page' => 90, 'orderby' => 'title','order' => 'ASC' )); 但我想按字母顺序排列,不考虑“the”: 花花公子沃霍尔夫妇 怪人 莫比 数据库
- 莫比
- 花花公子沃霍尔夫妇
- 怪人
$loop = new WP_Query(array('post_type' => 'episodio', 'cat' => '9', 'posts_per_page' => 90, 'orderby' => 'title','order' => 'ASC' ));
但我想按字母顺序排列,不考虑“the”:
- 花花公子沃霍尔夫妇
- 怪人
- 莫比
提前多谢!:) 在表上创建另一列,并将其擦洗干净,然后根据该列的顺序返回。这就是我最后要做的,非常感谢!)
$loop = new WP_Query(array('post_type' => 'episodio', 'cat' => '9', 'posts_per_page' => 90, 'orderby' => 'title','order' => 'DESC' ));
you will get result post title descending of category 9.