Home › Forums › Calendar Products › Events Calendar PRO › Events not showing in category
- This topic has 4 replies, 3 voices, and was last updated 11 years ago by
Support Droid.
-
AuthorPosts
-
December 16, 2013 at 9:45 am #81900
Bastien Bournet-Charrier
ParticipantI’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,
BastienDecember 16, 2013 at 11:04 pm #82031Brook
ParticipantHowdy 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
December 17, 2013 at 12:08 pm #82262Bastien Bournet-Charrier
ParticipantThat 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,
BastienDecember 17, 2013 at 2:21 pm #82363Brook
ParticipantYou are welcome. I am glad it helps.
July 7, 2015 at 6:30 am #982788Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘Events not showing in category’ is closed to new replies.
