Events not showing in category

Home Forums Calendar Products Events Calendar PRO Events not showing in category

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #81900

    I’d like to know if it’d be possible to have events displaying in a category. I know there’s a calendar/map page layout, but I’d also like my users to be able to see the events in a list-style directly from our category “…com/category/events”.

    I know that for another one of our plugin that add project-type posts, we had to add a custom function like :

    function id_add_custom_types( $query ){
    $project_cat = get_term_by(‘slug’, ‘projects’, ‘category’);
    if( $project_cat && $query->is_main_query() && (‘projects’ == $query->query_vars[‘category_name’] || $project_cat->term_id == $query->query_vars[‘cat’]) ) {
    $query->set(‘post_type’, array(‘post’,’ignition_product’));
    }
    }
    add_filter( ‘pre_get_posts’, ‘id_add_custom_types’ );

    Could you provide us with a similar function?

    All best,
    Bastien

    #82031
    Brook
    Participant

    Howdy thisisbbc,

    Part of our default functionality is a list view for event categories. Here is an example on the wpshindig site, showing the category “WordPress Meetups” in list view: http://wpshindig.com/events/category/wordpress-meetups/upcoming/

    If you have our default header enabled you can click on an event category. Then in the “View as” dropdown in the upper right just select “List”.

    Is this the functionality you wanted? Or, am I perhaps not understanding you? I want to be helpful so please inform me further if I am off base. Thanks!

    – Brook

    #82262

    That wasn’t really what I was looking for but I hadn’t seen the list feature before. After taking a quick look at it, it will probably suits us (taking in consideration the next version of TEC includes a filtering sidebar).

    Thank you for your answer Brook.

    Regards,
    Bastien

    #82363
    Brook
    Participant

    You are welcome. I am glad it helps.

    #982788
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Events not showing in category’ is closed to new replies.