Support

Home Forums Event Espresso Premium Jumbo theme Breadcrumb feature not recognizing EE taxonomies

Jumbo theme Breadcrumb feature not recognizing EE taxonomies

Posted: November 6, 2014 at 4:31 pm

Viewing 3 reply threads


Peter Levine

November 6, 2014 at 4:31 pm

Hi There,
I am using Obox’s Jumbo theme. I noticed this error on my EE pages: `NOTICE: UNDEFINED VARIABLE: TAXONOMY IN /APPLICATIONS/MAMP/HTDOCS/SPEED/WP-CONTENT/THEMES/JUMBO/OCMX/FRONT-END/BREAD-CRUMBS.PHP ON LINE 143′
When I go to that line, I see that the taxonomy just isn’t being set:

			// Get the terms
			$terms = get_the_terms( $post->ID, $taxonomy );

Please note that this is under the “is_singular()” conditional tag (if that is of any help).
And the relevant code for the declaration of the $taxonomy variable:

/* Categories, Taxonomies & Parent Pages

			- Page parents
			- Category & Taxonomy parents
			- Category for current post
			- Taxonomy for current post
		*/
[[[I edited for convenience]]]
elseif( is_category() || is_tax() ) {

 			// Get the taxonomy object
 			if( is_category() ) {
 				$category_title = single_cat_title( "", false );
				$category_id = get_cat_ID( $category_title );
				$category_object = get_category( $category_id );
 				$term = $category_object->slug;
 				$taxonomy = 'category';
 			} else {
 				$term = get_query_var('term' );
 				$taxonomy = get_query_var( 'taxonomy' );
 			}

			$term = get_term_by( 'slug', $term , $taxonomy )

I can confirm that I only get this error when I click on items under my “Events” menu item. My Event menu item was created in the Appearance>Menus admin panel by checking the “Events List” box under the “Event Archive Page” subheading under “Event Espresso Pages” list. So, whatever that creates, there is no category (or else $taxonomy would have been set to it) and the get_query_var() function can’t seem to find anything (or else $taxonomy would have been set to IT, right?).
Anywhere


Peter Levine

November 6, 2014 at 4:33 pm

Damn, I was adding tags and hit enter on accident. I wasn’t ready. Sorry, that looks like hell.

At any rate, any ideas? Thank you.


Dean

November 7, 2014 at 3:12 am

Hi,

Firstly, notifications like that wont show when the site does not have wp_debug enabled (which a production site should not) so it will not impact the site in any way.

The Events List arcive is not category based, it’s similar to any other post “blog roll” and will list all events regardless of archive, so there is no category/taxonomy.

If you added an Events Categories item to the menu, it should work (I don’t have that theme to test with) as it will then only list events from a particular category.


Peter Levine

November 7, 2014 at 1:57 pm

Thanks for the quick answer, Dean.
I can leave it alone for now, but I currently don’t have a breadcrumb option to get people back to the Events List. But I know enough to ask my theme support team.

Best.

Viewing 3 reply threads

The support post ‘Jumbo theme Breadcrumb feature not recognizing EE taxonomies’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso