Home › Forums › Calendar Products › Events Calendar PRO › Event Listing
- This topic has 7 replies, 2 voices, and was last updated 10 years, 11 months ago by
Barry.
-
AuthorPosts
-
May 14, 2015 at 7:29 am #962578
Carl
ParticipantHey team,
I have my event listing as list view and in that I have changed the layout in the single-event.php in the list folder and the result on the list view is as i wanted but now in the single event page i am getting a message that “This event has passed.” and the featured image does not appear
Please guide me how to fix this issue.
Really appreciate it.
May 14, 2015 at 10:57 am #962672Barry
MemberHi Carl,
Sorry to hear you are hitting up against some difficulties.
What’s interesting here is if I visit list view then pick any one of the events listed there, the single event pages themselves consistently show the same date (near the event title – which itself always appears to read as “Whats On” regardless of the true event title) and I believe it is simply outputting the server date/time here, though further down the page I can see the true event start time.
Might this be the result of your customization work and might it be “throwing” The Events Calendar, making it think the event has passed?
What I’d recommend initially is temporarily stripping out your customizations to see if that might be the case (if the same problem persists, we should progress to our complete troubleshooting steps, but starting with the custom work you’ve done seems sensible here).
Does that help you to find and identify the problem?
May 17, 2015 at 8:02 pm #963162Carl
ParticipantHey Barry sorry for the late reply, when i disable my custom single-events.php the event still shows as expired but when i disable my custom default-template.php the event expires notification disappears.
Please advice how can i keep the core functionality of the plugin and maintain my style.
Please let me know if you would like to have a login access i can provide you with the site access.
Regards
May 18, 2015 at 7:38 am #963240Barry
MemberHi Carl,
I appreciate the offer but I’m afraid our policy is not to accept site logins.
when i disable my custom default-template.php the event expires notification disappears
OK – so what have you customized and how does it compare to the current, unmodified version of the same template? Perhaps you could try systematically removing individual changes from this template and try to figure out the trigger that way?
If you’d like to share your template (via Pastebin, Gist or similar – please do not paste the code directly in the forum!) I can definitely take a quick look though, ultimately, if the problem is your own custom code this may be something we need to leave in your hands.
May 18, 2015 at 7:28 pm #963489Carl
ParticipantHey Barry,
Thank you very much for your reply. The customisation that i have done basically is more of appearance rather then functionality. Below is the link to default-template.php this file is in tribe-events folder in my child theme
http://pastebin.com/embed_iframe.php?i=zJiHjANS
and the other file that i edited was single-event.php this is in my child-theme > tribe-events > list > single-event.php the link to the file in paste bin is below
http://pastebin.com/embed_iframe.php?i=ajy4TrPG
The purpose of editing this file is to have my event listed the way i want and i have added some extra class and div so i could style them.
Thank you very much for your assistance Barry.
Regards
May 19, 2015 at 6:11 am #963552Barry
MemberOK. Might the problem be the extra loop you’ve added within your custom default-template.php? Try commenting it out/removing it temporarily – do things work then?
If so, perhaps you need to clean up immediately after:
May 19, 2015 at 7:56 pm #963774Carl
ParticipantHey Barry thank you very much ! adding wp_reset_query(); to
<?php endwhile; wp_reset_query();// end of the loop. ?>
solved my problem.
thank you once again 🙂
Regards
May 20, 2015 at 5:58 am #963808Barry
MemberFantastic!
-
AuthorPosts
- The topic ‘Event Listing’ is closed to new replies.
