Forums › Forums › Search & Filter Pro › S&F on Custom Post Type Archive Page
Tagged: wordpress
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by Trevor.
-
Anonymous(Private) July 11, 2016 at 8:23 am #50765
I’m using S&F on a custom post type called Events. The template is archive-events.php. In it I’m using a normal wordpress loop to go through the posts inside the Events Post Type. The search and filter short code is sitting outside the loop.
I have selected Post Type Archive and made sure only Events is selected. I have selected archive-events.php as the custom template. .events-section is the results container and the pagination selector is .pagination a.
If you need login details, I’m happy to let you have access.
Anonymous(Private) July 11, 2016 at 8:42 am #50767Here’s the errors from the debug.log file
*Note. These are on my localhost.
[11-Jul-2016 07:19:20 UTC] PHP Notice: Undefined index: show_count in /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/views/fields/post-date.php on line 140
[11-Jul-2016 07:19:20 UTC] PHP Stack trace:
[11-Jul-2016 07:19:20 UTC] PHP 1. {main}() /Applications/MAMP/htdocs/windmeul/wp-admin/post.php:0
[11-Jul-2016 07:19:20 UTC] PHP 2. include() /Applications/MAMP/htdocs/windmeul/wp-admin/post.php:173
[11-Jul-2016 07:19:20 UTC] PHP 3. do_meta_boxes() /Applications/MAMP/htdocs/windmeul/wp-admin/edit-form-advanced.php:717
[11-Jul-2016 07:19:20 UTC] PHP 4. call_user_func:{/Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037}() /Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037
[11-Jul-2016 07:19:20 UTC] PHP 5. Search_Filter_Posts_Admin->load_post_available_fields_metabox() /Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037
[11-Jul-2016 07:19:20 UTC] PHP 6. include_once() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/includes/class-search-filter-posts-admin.php:839
[11-Jul-2016 07:19:20 UTC] PHP 7. Search_Filter_Posts_Admin->display_meta_box_field() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/views/admin-available-fields-metabox.php:24
[11-Jul-2016 07:19:20 UTC] PHP 8. include() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/includes/class-search-filter-posts-admin.php:1054[11-Jul-2016 07:25:25 UTC] PHP Notice: Undefined index: combo_box in /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/views/fields/post-date.php on line 137
[11-Jul-2016 07:25:25 UTC] PHP Stack trace:
[11-Jul-2016 07:25:25 UTC] PHP 1. {main}() /Applications/MAMP/htdocs/windmeul/wp-admin/post.php:0
[11-Jul-2016 07:25:25 UTC] PHP 2. include() /Applications/MAMP/htdocs/windmeul/wp-admin/post.php:173
[11-Jul-2016 07:25:25 UTC] PHP 3. do_meta_boxes() /Applications/MAMP/htdocs/windmeul/wp-admin/edit-form-advanced.php:717
[11-Jul-2016 07:25:25 UTC] PHP 4. call_user_func:{/Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037}() /Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037
[11-Jul-2016 07:25:25 UTC] PHP 5. Search_Filter_Posts_Admin->load_post_available_fields_metabox() /Applications/MAMP/htdocs/windmeul/wp-admin/includes/template.php:1037
[11-Jul-2016 07:25:25 UTC] PHP 6. include_once() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/includes/class-search-filter-posts-admin.php:839
[11-Jul-2016 07:25:25 UTC] PHP 7. Search_Filter_Posts_Admin->display_meta_box_field() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/views/admin-available-fields-metabox.php:24
[11-Jul-2016 07:25:25 UTC] PHP 8. include() /Applications/MAMP/htdocs/windmeul/wp-content/plugins/search-filter-pro/admin/includes/class-search-filter-posts-admin.php:1054 -
AuthorPosts