Support

Home Forums Event Espresso Premium Short Code to Show Event Archive Layout with Category

Short Code to Show Event Archive Layout with Category

Posted: August 24, 2019 at 12:17 pm

Viewing 7 reply threads


mkreik

August 24, 2019 at 12:17 pm

I prefer the events archive page layout to the event list layout and would like to show the archive layout with a category on a page. Do you have the short code for that. On this page (https://newsite.csjthewell.org/introductory/) I am using the event list, but I don’t want the ticketing information. Rather I would prefer to have the page look like the event archive page that is assigned in Events>Templates (https://newsite.csjthewell.org/programs/) that has an image and the excerpt and if a person clicks on the title or image it will bring them to the single event page. Is there short code I can use to do that?


Lorenzo Orlando Caum

  • Support Staff

August 26, 2019 at 11:30 am

Hello,

The programs page that you shared looks like a custom page that was set up and then set to replace the default event listing page.

Did you use a tool like a page builder for that?

If so, you could use that tool to create another page with events in a certain category.


Lorenzo


mkreik

August 26, 2019 at 11:46 am

Yes. There is PHP added to the site to change the URL used for the Return to Events List button. But I’m not sure how to use that to change the items and order of what the event list short code shows that I’m using for https://newsite.csjthewell.org/introductory/. The event list short code uses the image, ticketing, cart button and then calendar. I would like for this page to use use image, title, excerpt and have the image and title hyperlinked to the single event as is done on https://newsite.csjthewell.org/programs/. Thanks in advance for your insight.


mkreik

August 26, 2019 at 11:48 am

And to clarify https://newsite.csjthewell.org/programs/ is the page defined on Events>Templates as the event list page.


Tony

  • Support Staff

August 27, 2019 at 5:02 am

Hi there,

It looks like the introductory page already outputs the content in the way you are describing, have you already figured this out or am I missing something on that page?


mkreik

August 27, 2019 at 7:43 am

This reply has been marked as private.


Tony

  • Support Staff

August 27, 2019 at 10:46 am

For screenshots you’ll need to host the image and post a link here, we have some examples of how you can add screenshots here:

https://eventespresso.com/wiki/troubleshooting-checklist/#screenshots

The introductory page shows the featured image, title, ticketing information and cart button for all events with the introductory category slug. I want it to show only the featured image, title and excerpt like the programs page.

You can set EE to not display the details on the event list in:

Event Espresso -> Events -> Templates -> Event List Pages

Set ‘Display Description’ to Excerpt.

Then ‘Display Ticket Selector’, ‘Display Datetimes’ & ‘Display Venue Details’ to No.

That will remove most of the details you want to remove from the event lists.

The output of /programs/ is controlled by your theme, it’s displaying an archive of EE event posts and has control over which details to output to the page.

What EE does is hook into the_content() and inject the event details as they are output, if the archive template is not calling that function and pulls the excerpt directly (which I think is what Avada does) then EE doesn’t inject the details.

I did not create the programs page (it isn’t in my page list). Instead it is accessible when I input the slug “programs,” in Events>Templates>Event Slug, and doesn’t not look like the introductory page.

This ties in the with the above, the events slug (regardless of what you set it to, in this case programs) outputs an archive of EE Event posts and the theme can take full control of that output.

I would like to make the introductory page look like the programs page but only contain those events with the the introductory category. Is there a way to do that?

Setting the above options to not display in the event lists should get you close and we can help with some additional CSS if needed, the other option is to start overriding templates and generating your own.

On the above setting page, make sure you are editing the Event list section settings as there are settings for both event lists and single event pages on that page.

For background, in Events>Templates>Event List I chose “yes” for the custom order though I didn’t change it from Event Description, Ticket Selector, Dates & Times, Venue.

I’m assuming your not using and custom templates for EE posts?

I don’t have custom CSS or PHP that does anything to https://newsite.csjthewell.org/programs/ except CSS that changes the size of the images on post pages, which this theme thinks the events are.

Event Espresso events are a custom post type, so they display as posts on pretty much every theme.


mkreik

August 27, 2019 at 12:07 pm

Thanks! I was over-thinking it and changing the settings in Events>Templates allowed me to see the information the way I wanted it.

Viewing 7 reply threads

The support post ‘Short Code to Show Event Archive Layout with Category’ 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