Support

Home Forums Event Espresso Premium Custom query for front page

Custom query for front page

Posted: March 28, 2014 at 6:38 pm


Travel Greenest

March 28, 2014 at 6:38 pm

Hello,
I’m new to EE and would like to create a custom query that lists all events on my front page with the appropriate metadata. What is the best way to do this? I’ve tried the EVENTLIST shortcode, but this was not parsed as a shortcode when added to the page’s content. I need to list:

1. Title
2. Duration
3. Location
4. Featured image.

Thanks in advance for any help.

Using: Event Espresso – 4.1.10


Lorenzo Orlando Caum

  • Support Staff

March 28, 2014 at 7:13 pm

Hi, unfortunately the event list shortcode won’t run for Event Espresso 4 because it is for Event Espresso 3. There is a similar shortcode available:

Show a list of all of your events
[ESPRESSO_EVENTS]

You can view the options available for this shortcode in WordPress admin –> Event Espresso –> Help & Support.

Let me know if that one runs on your front page.


Lorenzo


Travel Greenest

March 28, 2014 at 8:32 pm

Thanks for the tip. This shortcode definitely runs on the homepage, but it’s output is very verbose listing all of the info for each event. Is there any way to query for all events + meta data and only display the needed info? I only need the following displayed:

1. Title
2. Duration
3. Location
4. Featured image.


Lorenzo Orlando Caum

  • Support Staff

March 29, 2014 at 2:00 pm

Hello,

The shortcodes don’t have separate templates for themselves. If you made the needed customizations to the templates, then they would apply to your shortcodes and other front end pages for Event Espresso.

With that mentioned, you should be able to hide most of that information on only that page by using some CSS that uses the post id + classes and ids for Event Espresso content.

What is the URL for the page?


Lorenzo


Travel Greenest

March 29, 2014 at 2:34 pm

Thanks again for the tip.

The URL for the homepage is:

http://travelgreenest.com/green-travel-events/


Lorenzo Orlando Caum

  • Support Staff

March 29, 2014 at 2:55 pm

Could you add the shortcode to the page?


Lorenzo

The support post ‘Custom query for front page’ 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