Support

Home Forums Event Espresso Premium No Event List: just Search Results Page

No Event List: just Search Results Page

Posted: February 1, 2016 at 6:13 am

Viewing 17 reply threads


Laura

February 1, 2016 at 6:13 am

Hello,
I created my own demo site (ee4) and all was perfect. Then, I downloaded the Github version and I installed it on my site before purchased the Personal License and I have a problem: When I click to see a list of events (using the Upcoming Events widget) I see the results as a “search results page” and not as a List of events.

How can i solve it?
Thank You

  • This topic was modified 8 years, 11 months ago by Tony. Reason: Moved to premium


Tony

  • Support Staff

February 1, 2016 at 6:18 am

Which URL are you visiting?

Try flushing your permalinks (Dashboard -> Settings -> Permalinks -> Save) and then retest.


Laura

February 1, 2016 at 6:28 am

Hi Tony, thank you:
I was talking to Seth on Friday and we already tried some things. Among them, resave permalinks as you suggest.
But nothing happened.
He told me to write it in the forum because probably it would be an issue.

You can see it here (click on the left side bar “Próximas salidas”)
http://paragustosloscolores.com/mediterraneandive/curso_padi_open_water_diver_barcelona_mataro-html/


Tony

  • Support Staff

February 1, 2016 at 6:45 am

Clicking ‘Próximas salidas’ takes me to your events listing:

http://paragustosloscolores.com/mediterraneandive/events/

Which would be the expected result. However it looks like your theme is outputting a search title on archive listings, it’s the same with venues:

http://paragustosloscolores.com/mediterraneandive/venues/

That’s not actually a search listing, but an archice of EE events and EE venues. Your theme is outputting “X results for browsing: Unknown” on the top of archive pages so they look like searches.

So in short EE is working as expected but your theme is styling the output to look like a search (I’m not sure why the theme would do that to be honest)


Laura

February 1, 2016 at 7:21 am

Hi,
No,no. It’s not the Events Listing results, it’s the “search results”, that’s sure.
Because if I try to edit the custom settings from “events list view” like “show date, show description, etc.” nothing happens. I always see the same information.

And the widgets bar that I see it’s the “search sidebar widget area”.
Now I have activated the “Meta info” from my template settings. You can see better that it’s like a post search results and not from “Event List”:
http://paragustosloscolores.com/mediterraneandive/events/

Sorry for my english, i’m trying to explain it the best i can 🙂


Tony

  • Support Staff

February 1, 2016 at 8:31 am

Hi Laura,

I’m sorry but that page is not the standard search results page, it is an archive of events, take a look here – http://take.ms/Hmf7Q

Notice how the body_class has ‘archive’ and ‘post-type-archive-espresso_events’, that’s is an archive of Event Espresso events.

Now if I do a search on your site for ‘something something’, this is what I get – http://take.ms/ANEaJ

Now notice the body_class now has ‘search’ and ‘search-no-results’, that is a search result page.

Whats happening is your theme is styling the archives to look the same as the search, they are infact 2 different templates.

If you install What the file and reload the Event listing, in the admin bar you’ll see a ‘What the file’ menu, what template is the page loading?


Laura

February 1, 2016 at 9:07 am

Yes, that’s true! it’s an archive of events, but it’s still not an Event List.

I’ve installed “What the file” plugin. What I see it’s “archive.php” and a list of template parts (diferents archives) like:
inc/templates/dynamic_head.php
inc/templates/header_search.php
inc/templates/template_paginate_links.php
etc.


Tony

  • Support Staff

February 1, 2016 at 9:21 am

Yes, that’s true! it’s an archive of events, but it’s still not an Event List.

With Event Espresso 4 the archive listing is the Event list, however the output is total dependent on the theme. It looks like your theme outputs only the_title and the archive for archive listings.

Can you send a copy of the theme to support[at]eventespresso.com so I can take a look?


Laura

February 1, 2016 at 9:29 am

I can give you an admin log/pass if you want to enter to the administration and take a look.. (in private, of course). It’s that better?


Tony

  • Support Staff

February 1, 2016 at 9:32 am

No as this isn’t an issue with EE’s settings, it’s a issue with the themes template files.

I needs a copy of the theme I can install locally and see what is happening 🙂


Laura

February 1, 2016 at 10:26 am

Hi,
I’ve sent the template.
Have you received it?


Tony

  • Support Staff

February 1, 2016 at 1:52 pm

Yes I did, thank you.

The reason the search and archive page look the same is because the themes search.php just calls the archive.php template file.

search.php simply has: <?php get_template_part('archive'); ?>

So then archive.php is used for both searches and archive lists.

In order to get this working a custom template file will need to created from your current archive listing template. This template file will only be used for EE events so that the events no longer look like search results. There are a couple of changes that need to be made to the template for this to work, are you comfortable with PHP and WP template files?

If so we can help guide you in the right direction to fix this once have purchased your support license.


Laura

February 2, 2016 at 3:10 am

No I don’t :s
I’m with HTML and CSS but not much with PHP (just a little)

But if I make some changes to some archives, then.. are they wonna be re-writed when I upgrade this plugin to a new version that you make in a future? (Will I lose those changes?)


Tony

  • Support Staff

February 2, 2016 at 3:29 am

Its not Event Espresso you are making changes to, its your sites theme, which means you can create a child theme which allows you to override template files within the parent.

You can then update the theme (and Event Espresso) without losing any changes.


MedDive

February 4, 2016 at 11:24 am

Hi!
I’m Laura, writting from my client’s account. He has bought the Personal License and I’ve installed this versions in our site for solving the problem with the archive.php… but first, I’ve seen a problem since the new version is installed:

<span class="ee-status event-active-status-DTU">Upcoming</span>Salidas los sábados por la mañana

http://paragustosloscolores.com/mediterraneandive/events/salidas-en-sabado/

Thank You!


Tony

  • Support Staff

February 4, 2016 at 11:40 am

Hi Laura,

I’ve moved your support thread into the premium support forum 🙂

Turns out that is an issue when themes incorrectly use the_title() for the title attribute. the_title() can be used by plugins to add additional functionality (like what Event Espresso is doing) which is then applied to the title attribute if the_title() is used there.

The theme should be using the_title_attribute() for that section:

https://codex.wordpress.org/Function_Reference/the_title_attribute

We can disable the banner EE is adding to the title to prevent this for now, but I would also create a ticket within the themes support forum to have them correctly use the_title_attribute().

If you go to Event Espresso -> Events -> Templates (tab)

Set ‘Display Status Banner’ to No, save the settings and refresh the page, that code should no longer be displayed.


MedDive

February 4, 2016 at 11:47 am

OK, done!
Thank you, by the moment this is the solution 🙂
The next step it’s to solve the archive.php problem: must i wait for premium support forum? are they going to contact me?

By the way: thanks a lot for your fast and nice help 😀


Tony

  • Support Staff

February 4, 2016 at 11:54 am

The next step it’s to solve the archive.php problem: must i wait for premium support forum? are they going to contact me?

No, its just a different section of the forum that all of the support team can view.

Have your created a child theme for your current theme?

Follow the steps here:

https://premium.wpmudev.org/blog/how-to-create-wordpress-child-theme/

All the way down to ‘Child Theme Mechanics’

Note that those instructions are for a child theme of twentyfourteen, within ‘Template: ‘ will be the name of your theme.

Viewing 17 reply threads

The support post ‘No Event List: just Search Results 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