Event Listing

Home Forums Calendar Products Events Calendar PRO Event Listing

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #962578
    Carl
    Participant

    Hey 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.

    #962672
    Barry
    Member

    Hi 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?

    #963162
    Carl
    Participant

    Hey 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

    #963240
    Barry
    Member

    Hi 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.

    #963489
    Carl
    Participant

    Hey 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

    #963552
    Barry
    Member

    OK. 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:

    #963774
    Carl
    Participant

    Hey 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

    #963808
    Barry
    Member

    Fantastic!

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Event Listing’ is closed to new replies.