Support » Plugin: Events Manager - Calendar, Bookings, Tickets, and more! » Category archive page – no result

  • Resolved Messaone

    (@messaone)


    Hey.

    I try to use the categories to only show the events which are in this category.
    At http://www.domain.com/events/ i see all events
    At http://www.domain.com/events/category-name i got back there is no post available.
    So i try to use it as archive page. There is no create page for that.

    I debug the wp_query.
    As you see there is no post included.

    WP_Query Object
    (
        [query] => Array
            (
                [taxonomy] => event-categories
                [term] => villa-maund
                [event-categories] => villa-maund
                [debug-this] => wp_query
                [do_not_redirect] => 1
            )
    
        [query_vars] => Array
            (
                [taxonomy] => event-categories
                [term] => villa-maund
                [event-categories] => villa-maund
                [debug-this] => wp_query
                [do_not_redirect] => 1
                [error] => 
                [m] => 
                [p] => 0
                [post_parent] => 
                [subpost] => 
                [subpost_id] => 
                [attachment] => 
                [attachment_id] => 0
                [name] => 
                [pagename] => 
                [page_id] => 0
                [second] => 
                [minute] => 
                [hour] => 
                [day] => 0
                [monthnum] => 0
                [year] => 0
                [w] => 0
                [category_name] => 
                [tag] => 
                [cat] => 
                [tag_id] => 
                [author] => 
                [author_name] => 
                [feed] => 
                [tb] => 
                [paged] => 0
                [meta_key] => distanz
                [meta_value] => 
                [preview] => 
                [s] => 
                [sentence] => 
                [title] => 
                [fields] => 
                [menu_order] => 
                [embed] => 
                [category__in] => Array
                    (
                    )
    
                [category__not_in] => Array
                    (
                    )
    
                [category__and] => Array
                    (
                    )
    
                [post__in] => Array
                    (
                    )
    
                [post__not_in] => Array
                    (
                    )
    
                [post_name__in] => Array
                    (
                    )
    
                [tag__in] => Array
                    (
                    )
    
                [tag__not_in] => Array
                    (
                    )
    
                [tag__and] => Array
                    (
                    )
    
                [tag_slug__in] => Array
                    (
                    )
    
                [tag_slug__and] => Array
                    (
                    )
    
                [post_parent__in] => Array
                    (
                    )
    
                [post_parent__not_in] => Array
                    (
                    )
    
                [author__in] => Array
                    (
                    )
    
                [author__not_in] => Array
                    (
                    )
    
                [meta_query] => Array
                    (
                        [0] => Array
                            (
                                [key] => _event_end
                                [value] => 2020-04-16 14:27:14
                                [compare] => >=
                                [type] => DATETIME
                            )
    
                    )
    
                [orderby] => meta_value_num
                [meta_type] => DATETIME
                [order] => ASC
                [post_type] => event
                [scope] => all
                [posts_per_page] => 15
                [ignore_sticky_posts] => 
                [suppress_filters] => 
                [cache_results] => 1
                [update_post_term_cache] => 1
                [lazy_load_term_meta] => 1
                [update_post_meta_cache] => 1
                [nopaging] => 
                [comments_per_page] => 50
                [no_found_rows] => 
            )
    
        [tax_query] => WP_Tax_Query Object
            (
                [queries] => Array
                    (
                        [0] => Array
                            (
                                [taxonomy] => event-categories
                                [terms] => Array
                                    (
                                        [0] => villa-maund
                                    )
    
                                [field] => slug
                                [operator] => IN
                                [include_children] => 1
                            )
    
                        [1] => Array
                            (
                                [taxonomy] => event-categories
                                [terms] => Array
                                    (
                                        [0] => villa-maund
                                    )
    
                                [field] => slug
                                [operator] => IN
                                [include_children] => 1
                            )
    
                    )
    
                [relation] => AND
                [table_aliases:protected] => Array
                    (
                        [0] => Z8s5lW_term_relationships
                        [1] => tt1
                    )
    
                [queried_terms] => Array
                    (
                        [event-categories] => Array
                            (
                                [terms] => Array
                                    (
                                        [0] => villa-maund
                                    )
    
                                [field] => slug
                            )
    
                    )
    
                [primary_table] => Z8s5lW_posts
                [primary_id_column] => ID
            )
    
        [meta_query] => WP_Meta_Query Object
            (
                [queries] => Array
                    (
                        [0] => Array
                            (
                                [key] => distanz
                                [type] => DATETIME
                            )
    
                        [1] => Array
                            (
                                [0] => Array
                                    (
                                        [key] => _event_end
                                        [value] => 2020-04-16 14:27:14
                                        [compare] => >=
                                        [type] => DATETIME
                                    )
    
                                [relation] => OR
                            )
    
                        [relation] => AND
                    )
    
                [relation] => AND
                [meta_table] => Z8s5lW_postmeta
                [meta_id_column] => post_id
                [primary_table] => Z8s5lW_posts
                [primary_id_column] => ID
                [table_aliases:protected] => Array
                    (
                        [0] => Z8s5lW_postmeta
                        [1] => mt1
                    )
    
                [clauses:protected] => Array
                    (
                        [Z8s5lW_postmeta] => Array
                            (
                                [key] => distanz
                                [type] => DATETIME
                                [compare] => =
                                [compare_key] => =
                                [alias] => Z8s5lW_postmeta
                                [cast] => DATETIME
                            )
    
                        [mt1] => Array
                            (
                                [key] => _event_end
                                [value] => 2020-04-16 14:27:14
                                [compare] => >=
                                [type] => DATETIME
                                [compare_key] => =
                                [alias] => mt1
                                [cast] => DATETIME
                            )
    
                    )
    
                [has_or_relation:protected] => 
            )
    
        [date_query] => 
        [queried_object] => WP_Term Object
            (
                [term_id] => 27
                [name] => Villa Maund
                [slug] => villa-maund
                [term_group] => 0
                [term_taxonomy_id] => 27
                [taxonomy] => event-categories
                [description] => 
                [parent] => 0
                [count] => 9
                [filter] => raw
            )
    
        [queried_object_id] => 27
        [request] => SELECT SQL_CALC_FOUND_ROWS  Z8s5lW_posts.ID FROM Z8s5lW_posts  LEFT JOIN Z8s5lW_term_relationships ON (Z8s5lW_posts.ID = Z8s5lW_term_relationships.object_id)  LEFT JOIN Z8s5lW_term_relationships AS tt1 ON (Z8s5lW_posts.ID = tt1.object_id) INNER JOIN Z8s5lW_postmeta ON ( Z8s5lW_posts.ID = Z8s5lW_postmeta.post_id )  INNER JOIN Z8s5lW_postmeta AS mt1 ON ( Z8s5lW_posts.ID = mt1.post_id ) WHERE 1=1  AND ( 
      Z8s5lW_term_relationships.term_taxonomy_id IN (27) 
      AND 
      tt1.term_taxonomy_id IN (27)
    ) AND ( 
      Z8s5lW_postmeta.meta_key = 'distanz' 
      AND 
      ( 
        ( mt1.meta_key = '_event_end' AND CAST(mt1.meta_value AS DATETIME) >= '2020-04-16 14:27:14' )
      )
    ) AND Z8s5lW_posts.post_type = 'event' AND (Z8s5lW_posts.post_status = 'publish' OR Z8s5lW_posts.post_status = 'acf-disabled' OR Z8s5lW_posts.post_status = 'private') GROUP BY Z8s5lW_posts.ID ORDER BY Z8s5lW_postmeta.meta_value+0 ASC LIMIT 0, 15
        [posts] => Array
            (
            )
    
        [post_count] => 0
        [current_post] => -1
        [in_the_loop] => 
        [comment_count] => 0
        [current_comment] => -1
        [found_posts] => 0
        [max_num_pages] => 0
        [max_num_comment_pages] => 0
        [is_single] => 
        [is_preview] => 
        [is_page] => 
        [is_archive] => 1
        [is_date] => 
        [is_year] => 
        [is_month] => 
        [is_day] => 
        [is_time] => 
        [is_author] => 
        [is_category] => 
        [is_tag] => 
        [is_tax] => 1
        [is_search] => 
        [is_feed] => 
        [is_comment_feed] => 
        [is_trackback] => 
        [is_home] => 
        [is_privacy_policy] => 
        [is_404] => 
        [is_embed] => 
        [is_paged] => 
        [is_admin] => 
        [is_attachment] => 
        [is_singular] => 
        [is_robots] => 
        [is_posts_page] => 
        [is_post_type_archive] => 
        [query_vars_hash:WP_Query:private] => 414e8cfac1c15215079b1e0678cd0355
        [query_vars_changed:WP_Query:private] => 1
        [thumbnails_cached] => 
        [stopwords:WP_Query:private] => 
        [compat_fields:WP_Query:private] => Array
            (
                [0] => query_vars_hash
                [1] => query_vars_changed
            )
    
        [compat_methods:WP_Query:private] => Array
            (
                [0] => init_query_flags
                [1] => parse_tax_query
            )
    
    )
    • This topic was modified 3 years, 11 months ago by Messaone.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Category archive page – no result’ is closed to new replies.