Support

Home Forums Event Espresso Premium Determine which event template is being used

Determine which event template is being used

Posted: January 6, 2021 at 12:35 am


KGM_Adm

January 6, 2021 at 12:35 am

Hi, I am using the shortcode to load my events and have modified the espresso_events-shortcode.php file to achieve a custom look.

I am also using FacetWP on the page with the shortcode to filter the events. Initially, the page loads fine with the custom look I made. When I apply a filter all the right events are shown (which tells me the FacetWP query is working correctly) up but the template for the event is different. The template shown has the following in this order:

1. Title
2. Custom Fields
3. The first datetime (the shortcode template displays all date times)

Do you know which template file this is so I can modify it to achieve the same look as when the original shortcode is called?

If not, how can I determine which file is being called on?

Thanks in advance!


Tony

  • Support Staff

January 7, 2021 at 6:49 am

Hi there,

When I test this I’m getting the same template used on both the initial page load and the filters events when using FacetWP.

Do you know which template file this is so I can modify it to achieve the same look as when the original shortcode is called?

This sounds like something WPFacet is changing rather than EE, can you link me to the page so I can take a look?

If not, how can I determine which file is being called on?

This is likely something you’ll need to take up with FaceWP but I’ll know more if I can view the page.


KGM_Adm

January 13, 2021 at 11:20 am

This reply has been marked as private.


Tony

  • Support Staff

January 14, 2021 at 2:54 pm

Ok, that doesn’t look like a different template, it looks like different content on the same template and it doesn’t happen for me when using the latest version of your template you posted.

Have you made more changes to that template since?


KGM_Adm

January 16, 2021 at 1:07 am

I am not quite sure what you mean by template vs content. I haven’t made any changes since. What are you referring to by latest version of my template?

For me when I first load the page everything looks great, once I apply a filter the content for specific events is removed such as the register now button, and description.


Tony

  • Support Staff

January 18, 2021 at 11:11 am

I am not quite sure what you mean by template vs content. I haven’t made any changes since.

The template says load X, Y, Z in order A, B, C right?

The content of the template is created as the template parses, so the template in use is the same for both the initial page load and the facet load looks to be the same, but the content generated by those templates differs.

Why that is happening I can’t tell, it’s not happening for me locally.

What are you referring to by latest version of my template?

The Pastebin you included in your previous thread here:

https://eventespresso.com/topic/ee-critical-error/#post-31837

For me when I first load the page everything looks great, once I apply a filter the content for specific events is removed such as the register now button, and description.

Yeah I can see it happening on your site, but using the above template locally and setting up WPFacet as you indicated to do so works fine for me locally.

Looking on your site when you select a Facet you can view the request and see that the template it is calling is the default wp template (which is actually your custom template), meaning its the same template just for some reason returning different content.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!