【文件属性】:
文件名称:wp-combine-queries:WordPress:通过WP_Query类的自定义'combined_query'属性将多个WP_Query()查询合并为一个查询
文件大小:17KB
文件格式:ZIP
更新时间:2021-02-05 16:47:13
wordpress wordpress-plugin wp-query combine-queries WordPressPHP
组合查询
WordPress插件-组合查询
描述
这个实验性插件可让您使用combined_query属性将多个WP_Query查询合并为一个查询。
这是作为*的答案开始的,请参见和。
该插件背后的想法是将每个WP_Query()查询SQL查询与UNION或UNION ALL结合在一起。
我首先在Mike Schinkel的注意到了这项技术。
我使用提到的技巧来保留UNION子查询的顺序。
此实现支持组合N个子查询。
关于新的1.0.0版本的通知
此版本完全重写了该插件。
该WP_Combine_Query类,取而代之只需使用的被删除combined_que
【文件预览】:
wp-combine-queries-master
----LICENCE(1KB)
----README.md(11KB)
----bin()
--------install-wp-tests.sh(5KB)
----tests()
--------Integration()
--------bootstrap.php(584B)
----composer.lock(4KB)
----composer.json(588B)
----.gitattributes(22B)
----combined-query.php(988B)
----phpunit.xml.dist(318B)
----includes()
--------Generator.php(2KB)
--------Main.php(7KB)
--------EmptyQuery.php(2KB)
----.travis.yml(2KB)