Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/235.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/wordpress/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Php 自定义wordpress post筛选器_Php_Wordpress_Filter - Fatal编程技术网

Php 自定义wordpress post筛选器

Php 自定义wordpress post筛选器,php,wordpress,filter,Php,Wordpress,Filter,因此,我有一个页面的帖子,我想能够过滤的职位,每月,类别,和关键字过滤器,用户输入。我在网上找到了一些插件的例子,这些插件可以完成关键字、类别和关键字字段,但我没有看到添加月份选择器的简单方法。我自己做一个定制的过滤表单会更容易吗?我看到的唯一问题是关键字过滤器 任何指点都将不胜感激 我认为最好的解决方案是使用AJAX。您可以在模板中创建输入,然后在functions.php中定义逻辑和javasctipt文件,最后添加js文件

因此,我有一个页面的帖子,我想能够过滤的职位,每月,类别,和关键字过滤器,用户输入。我在网上找到了一些插件的例子,这些插件可以完成关键字、类别和关键字字段,但我没有看到添加月份选择器的简单方法。我自己做一个定制的过滤表单会更容易吗?我看到的唯一问题是关键字过滤器


任何指点都将不胜感激

我认为最好的解决方案是使用AJAX。您可以在模板中创建输入,然后在functions.php中定义逻辑和javasctipt文件,最后添加js文件