Support

Home Forums Event Espresso Premium Nothing Found: Apologies, but no results were found.

Nothing Found: Apologies, but no results were found.

Posted: September 1, 2015 at 12:22 pm

Viewing 5 reply threads


Terry Roberts

September 1, 2015 at 12:22 pm

Is there ANY way to change this string? It’s displayed when there are no events and the [ESPRESSO_EVENTS] shortcode is in use.

Thank you.


Lorenzo Orlando Caum

  • Support Staff

September 1, 2015 at 1:39 pm

Hi Terry, that may be coming from your theme as I could not find it as a translation string under the event_espresso textdomain. Could you link to a page that has that messaging on it?


Lorenzo


Terry Roberts

September 2, 2015 at 10:03 am

http://www.paideia.org/trainings/

It’s only displayed where the EE shortcode is. Also, it displays the events normally when there are events.


Terry Roberts

September 2, 2015 at 11:15 am

Ok, looking closer, I found it in an archive page for a custom post type that was setup using the standard wordpress file naming scheme: archive-faculty.php

Why is EE pulling content from there? That custom post type was not intended for use with EE.


Terry Roberts

September 2, 2015 at 11:22 am

Nevermind, I see that it’s defaulting to the content-none.php file in the theme. It’d be great if that functionality were easier to customize. It certainly threw us for a loop!


Josh

  • Support Staff

September 2, 2015 at 11:47 am

Hi Terry,

Typically there’s a series of if and elseif conditionals in a content-none.php template part. You can add a conditional like this before the final else statement to print a custom message for when there are no events:

<?php elseif ( is_post_type_archive ( 'espresso_events' ) ) : ?>
  <p>Some text about no events goes here</p>
Viewing 5 reply threads

The support post ‘Nothing Found: Apologies, but no results were found.’ 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