Home › Forums › Calendar Products › Events Calendar PRO › Events Category menu option not working
- This topic has 7 replies, 2 voices, and was last updated 10 years, 6 months ago by
Josh.
-
AuthorPosts
-
October 19, 2015 at 1:41 pm #1015967
maria miranda
ParticipantHi!
I’m having problems connecting the Events Category as a menu item. My website is cappellacantorum.org
I’ve tested the Events Category menu item every time we’ve had a new update ever since the function broke about a year ago. Right now, I have a test “Events Category” menu item set up as a submenu item to “Contact Us” on the Main Menu. It should list only Singer Registrations. It just waits and waits until finally comes up with “This page cannot be displayed.”
Why does the Events Category menu option not work anymore?
October 19, 2015 at 5:46 pm #1016056Josh
ParticipantHey Sharon,
Thanks for reaching out to us!
I just tested this on my local install and was able to add an event category as a submenu item and then reviewed the front-end of the site to verify that I was able to click that item and successfully make it to the archive for that category.
A couple of quick questions that may help us here:
- Are you able to navigate to an event category archive if you click on the category link within a single event view? Or does that generate the same behavior as the generated when adding it to your menu.
- Have you tried following the Testing for Conflicts procedures to ensure there isn’t a conflict with an existing plugin or theme?
Let me know if this helps.
Thanks!
October 20, 2015 at 9:05 am #1016268maria miranda
ParticipantI tried just clicking on a category within an event and it doesn’t load either.
They do work when I switch themes to the 2015 theme.
Would you be able to look at my theme and see what’s conflicting with it?
October 21, 2015 at 7:17 am #1016547Josh
ParticipantHey Sharon,
Thanks for following up with us.
I can’t make any promises since we are limited in the amount of support we are able to provide for theme conflicts such as these, however if you would like, you can send me a link to the theme that is currently active on your site and I can see if there is a simple solution to this one for you.
Thanks!
October 21, 2015 at 7:23 am #1016553maria miranda
ParticipantHi Josh!
Here is the site that is using the calendar and having the conflict.
Here is one of the event pages.
October 22, 2015 at 5:45 am #1016824Josh
ParticipantHey Sharon,
It looks like there is a redirect loop on these archives. Try checking the theme files (particularly the functions.php file or any external functions type files that are linked to within your functions.php file) and see if your theme is registering any of it’s own taxonomies or custom post types. If so, check the slug_rewrite rules that they are being registered with to see if there is any potential duplication here against the event/category that is currently used for tribe category archives.
Let me know if this helps.
Thanks!
October 22, 2015 at 6:55 am #1016849maria miranda
ParticipantThank you, Josh! 🙂
It turns out that this function was conflicting with it.
/* Calendar Category List View */
//add_action(‘parse_query’, ‘use_list_view_for_categories’, 60);
//function use_list_view_for_categories($query) {
// Run once
// remove_action(‘parse_query’, ‘use_list_view_for_categories’, 60);// Interfere only for non-ajax Tribe category requests not already destined to be presented by list view
// if (defined(‘DOING_AJAX’) && DOING_AJAX) return;
// if (!isset($query->tribe_is_event_category) || !$query->tribe_is_event_category) return;
// if (tribe_is_view(‘upcoming’)) return;// Obtain the query term and get a link to list view for that term
// $main_tax_query = $query->tax_query->queries[0];
// $term = get_term_by(‘slug’, $main_tax_query[‘terms’][0], TribeEvents::TAXONOMY);
// $link = tribe_get_listview_link($term->term_id);// Try to redirect
// wp_redirect($link);
// exit();
//}October 23, 2015 at 1:38 am #1017183Josh
ParticipantHey Sharon,
Awesome! Glad you were able to find the conflicting code!
I’ll go ahead and close this thread for now. If you have any further questions, please don’t hesitate to open a new thread.
Thanks!
-
AuthorPosts
- The topic ‘Events Category menu option not working’ is closed to new replies.
