Support

Home Forums Event Espresso Premium Unfiltered Event Description

Unfiltered Event Description

Posted: November 29, 2015 at 1:06 am

Viewing 3 reply threads


Steve Ryan

November 29, 2015 at 1:06 am

Good evening. Racking my brain about this for a little bit now. Is there a template tag that will return only the description of an event. Attempts to include the template tag espresso_event_content_or_excerpt() all return the Event CPT Description + the event details, ticket selector, etc. All I need is just the content. 🙂 (Managed to grab everything else from the included templates and rearrange the page that way.)

Is the solution to remove_filter on the above template tag? If so, which filters need to be removed? Thanks!


Tony

  • Support Staff

November 30, 2015 at 4:41 am

Hi Steve,

Have you created custom templates specifically for EE events or have you wrapped sections within a espresso_events post type check?

The reason I’m asking is if you have created custom templates then EE should not inject all of the event details when calling the_content(). Can you provide some details on how you have this set up please?

Are you using the latest version of EE4? (Currently 4.8.25)

Also we have a drag and drop feature to allow you to re-arrange the event details into a custom order within Event Espresso -> Events -> Templates -> Use Custom Display Order?

The above is available for both single events and event lists.


Steve Ryan

December 6, 2015 at 10:46 pm

Hello there. Apologies for the delayed response.

I’m currently using 4.8.25.p in a local environment, and will plan on upgrading to the latest release upon site launch.

My initial approach was to make a new page template (courses.php) and assign that page template to the event using the drop down in the sidebar. The page template, however, just included a normal loop and didn’t check for the CPT espresso_events at all. I think that’s my initial problem.

To double check, events in EE are custom post types of the variety “espresso_events.” Making a single-espresso_events.php and an archive-espresso_events.php using a normal WP loop should produce the desired results, correct?


Josh

  • Support Staff

December 7, 2015 at 12:14 pm

It’s possible that making a single-espresso_events.php and an archive-espresso_events.php will work for you.

Is the solution to remove_filter on the above template tag?

It might be a solution.

If so, which filters need to be removed?

You can remove the filters that are added to
FHEE__content_espresso_events_details_template__the_content

I’d suggest trying those first and if that does not work, perhaps you can post the code you are using in a pastebin or a gist and we can investigate.

Viewing 3 reply threads

The support post ‘Unfiltered Event Description’ 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