Support

Home Forums Event Espresso Premium Sticky/Featured post

Sticky/Featured post

Posted: August 6, 2014 at 6:14 am


Kish Parmar

August 6, 2014 at 6:14 am

I was wondering how I could go about having a featured/sticky event at the top of the events list. Any ideas?


Dean

August 6, 2014 at 6:50 am

Hi Kish,

With EE3 you would have to create a post and add the single_event shortcode to it or create a Post via the Event (at the bottom of the event editor) then edit that post and make it sticky.

In EE4, events are custom post types so they cannot be made sticky by default. Using something like this guide it is possible to make them sticky (http://www.wpbeginner.com/wp-tutorials/how-to-add-sticky-posts-in-custom-post-type-archives/), though you may wish to do a Google for Sticky Custom Post Types as that was just the first one I found.


Kish Parmar

August 6, 2014 at 9:44 am

Hey Dan, thanks for the reply. That makes sense I guess. This is the first time I’m using Event Espresso and I have a question.

If I was to create a post for all the events and used a standard WP query to display those posts on an “archive page” along with a booking button, could I ignore the standard template pages for the archive and single events. Or am I missing something?


Sidney Harrell

August 6, 2014 at 6:10 pm

Are you using EE3 or EE4?
Either one needs it’s critical pages with their shortcodes in order to function. They can be hidden in EE3 and are hidden in EE4 by default.
For EE4, if an archive page of EE Events is loaded, the WP loader will first look for archive-espresso_events.php. If it fails to find that it will load archive.php.

The support post ‘Sticky/Featured post’ 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