Support

Home Forums Event Espresso Premium Event Categories Template Pages Problem…

Event Categories Template Pages Problem…

Posted: February 27, 2014 at 10:59 am


amansker

February 27, 2014 at 10:59 am

EE4.
Latest Version of WP.
Development Site

I’m using archive-espresso_events.php in my theme…works great. However, for my individual categories (in my case, “Private” and “Public” with corresponding lowercase slugs) they revert back to the general archive page which isn’t how I want it to display. I’ve tried using custom taxonomy pages to no avail. All I want is the category pages to look exactly like the above archive page which list ALL events.

It seems taxonomy is the way to go…but I’ve tried many formats to get it to work:

taxonomy-espresso_events-private.php
taxonomy-event-category.php
taxonomy-event_category.php
taxonomy-event-category-private.php
taxonomy-event_category-private.php

I fear I’m missing something very simple….


Josh

  • Support Staff

February 27, 2014 at 4:47 pm

Hi there,

Yeah, you were a few keystrokes away from:

taxonomy-espresso_event_categories.php

Then you can also add the term like this:

taxonomy-espresso_event_categories-private.php

You’ll likely run into some issues with using this right now though because there is some ongoing work with working though all the bugs in of Event Espresso 4 beta’s templating functionality now that it’s all based on Custom Post Types. When I checked into this I found another bug that I need to report to the team. I’ll keep you posted on this.


amansker

March 11, 2014 at 11:08 am

Thanks for this, Josh. However, I’m having an issue with not being able to call your custom functions for example:

espresso_event_reg_button();

I can call this fine in archive-expresso_events.php….

Any thoughts?


Josh

  • Support Staff

March 12, 2014 at 10:56 am

That’s one of the bugs I found too. I mentioned this to the dev team and it looks like what they’ll need to do is create a really wide scope template tag that will load the View helpers then that template tag can be put at the top of the base template files.


amansker

March 13, 2014 at 2:13 pm

Okay, thanks, Josh. So we’ll just need to wait for the next version I assume. Is there anyway to manually load the view helpers into pages where I want to use them?


Josh

  • Support Staff

March 14, 2014 at 9:18 am

Hi there,

I’m not aware of a way to manually load the view helpers outside of the Event Espresso template hierarchy. There is another way to load up an archive of a category of events by using a shortcode like this on a page:

[ESPRESSO_EVENTS category_slug=”private”]


Josh

  • Support Staff

August 5, 2014 at 12:51 pm

Hi there,

I wanted to let you know that Event Espresso 4.3 includes an update that allows for event category taxonomy templating. It was released today.

The support post ‘Event Categories Template Pages Problem…’ 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