Problem with display of Event list in Upcoming view of Event template

Home Forums Calendar Products Events Calendar PRO Problem with display of Event list in Upcoming view of Event template

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #49198
    Annette
    Participant

    I had a problem with the month nav formatting in Calendar view https://theeventscalendar.com/support/forums/topic/problem-with-display-of-date-picker-in-calendar-template/#post-49194 – but adding “tribe_get_current_template() to my template fixed it :). In turn, that has created a new problem with duplicated content in the Upcoming Events view 🙁 http://www.leisurecourses.net/courses/upcoming/

    #49201
    Barry
    Member

    Can you share your list.php template via a service like Pastebin (pasting code directly into the forum does not unfortunately work very well at present)?

    #49202
    Annette
    Participant
    #49205
    Barry
    Member

    OK, well that seems to be in order. If Events > Settings > Template is set up to use the Default Events Template can you share your ecp-page-template.php file?

    #49206
    Annette
    Participant

    Event Settings is set to use my own template http://pastebin.com/sgRZNVB1
    The ecp-page is the default but located in my own ‘URL/wp-content/theme/events’ folder http://pastebin.com/U3H5vbz8

    #49207
    Barry
    Member

    OK, all rather bizarre.

    I’m afraid I can’t replicate using those templates alone – which suggests the problem may be elsewhere.

    What actually seems to be happening is the second set of calendar buttons are being included as part of the first event post – which is a little bizarre.

    Are there any other changes you made relating to The Events Calendar I should be aware of (perhaps in your functions.php file) and does this occur only with your customized theme (ie, if all other plugins except for The Events Calendar are deactivated)?

    #49208
    Annette
    Participant

    I deactivated everything – but it didn’t solve the problem. Here is the loop function from the theme http://pastebin.com/yWM19znP.
    Could I include something else instead of “tribe_get_current_template()” into my page-template.php ?
    Last resort thinking – if both ‘upcoming’ and ‘month’ functions work correctly based on different PHP templates could there be a workaround ?!

    #49210
    Barry
    Member

    If they work correctly with the default events template, for instance, then yeah you could simply customize that as needed to make it fit with your theme. Is that something that works for you?

    #49217
    Annette
    Participant

    The default doesn’t work well in SingleEvent view.
    Would it be possible to include just the List view in a completely separate template and hard code the buttons ?

    #49315
    Annette
    Participant

    I’ve solved this problem – stripped the ecp template right back and added each individual element with styles from my theme .

    #49318
    Barry
    Member

    Excellent – glad you arrived at a solution 🙂

Viewing 11 posts - 1 through 11 (of 11 total)
  • The topic ‘Problem with display of Event list in Upcoming view of Event template’ is closed to new replies.