开发者 |
shane-welland
CreareGroup |
---|---|
更新时间 | 2014年7月31日 04:05 |
捐献地址: | 去捐款 |
PHP版本: | 3.0.0 及以上 |
WordPress版本: | 3.9.1 |
版权: | GPLv2 or later |
版权网址: | 版权信息 |
/advanced-custom-post-search/
to the /wp-content/plugins/
directoryNo, but you will need at least one to create a form.
No, but you will need at least one of each before you can create a functional form.
The error specifically addresses configuration issues so check you have custom post types, taxonomies and terms created.
ACPS allows you to override the default results page and loop by adding the files ‘acps-results_loop.php’ and ‘acps-results.php’ in a number of places in your active theme folder. Either copy the file(s) into the ‘/wp-content/[theme_directory]/acps/templates’ or ‘/wp-content/[theme_directory]/‘ directory to override the default templates.
The results pages work off of the standard WP_Query loop and therefore list any options based on the filters you selected. Make sure you have published the posts you are trying to find.
As of version 1.1 you are able to setup your own results pages instead of using the default ‘advanced-search’ page, you can access the options for this on the plugin’s settings page.
Be sure to include the results shortcode [acps_results] in the content area (or in the theme template), without this the results will not load.
The results section is setup through ACPS’ acps_results class, you need to use ‘$this->acps_args’ in your WP_Query setting otherwise no query parameters will be set.
Since version 1.1 you can use the built in form style option which can be found on the plugin’s general settings page or alternatively just include any styles in your own stylesheets. Classes are added to your form(s) to make styling easy, they are based on a number of things including the following: labels/no labels, shortcode/ widget, inside titles/ outside titles, custom container class.