Home › Forums › Calendar Products › Events Calendar PRO › Problem with display of Event list in Upcoming view of Event template
- This topic has 10 replies, 2 voices, and was last updated 12 years, 11 months ago by
Barry.
-
AuthorPosts
-
May 21, 2013 at 9:12 am #49198
Annette
ParticipantI 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/
May 21, 2013 at 9:26 am #49201Barry
MemberCan 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)?
May 21, 2013 at 9:29 am #49202Annette
ParticipantHere it is! http://pastebin.com/bZHFYfNB
May 21, 2013 at 9:38 am #49205Barry
MemberOK, 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?
May 21, 2013 at 9:42 am #49206Annette
ParticipantEvent 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/U3H5vbz8May 21, 2013 at 9:49 am #49207Barry
MemberOK, 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)?
May 21, 2013 at 10:00 am #49208Annette
ParticipantI 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 ?!May 21, 2013 at 10:22 am #49210Barry
MemberIf 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?
May 21, 2013 at 10:44 am #49217Annette
ParticipantThe 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 ?May 22, 2013 at 3:29 am #49315Annette
ParticipantI’ve solved this problem – stripped the ecp template right back and added each individual element with styles from my theme .
May 22, 2013 at 5:18 am #49318Barry
MemberExcellent – glad you arrived at a solution 🙂
-
AuthorPosts
- The topic ‘Problem with display of Event list in Upcoming view of Event template’ is closed to new replies.
