Forums Forums Search & Filter Pro S&F on Custom Post Type Archive Page

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Anonymous
    #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
    #50767

    Here’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

    Trevor
    #50772

    Marcus, is this content from a plugin called The Events Calendar, if not, what theme is it and how did the events CPT get made?

    Anonymous
    #50773
    This reply has been marked as private.
    Anonymous
    #50779

    The plugin file you sent has solved this issue.

    Trevor
    #50792

    OK, just don’t forget to update again when we actually release the final version (again by manual means, you will find the download in your account when it is released). I will close this thread now.

Viewing 6 posts - 1 through 6 (of 6 total)