Home › Forums › Calendar Products › Events Calendar PRO › Photo/List View content isn’t updated correctly with date change.
- This topic has 8 replies, 2 voices, and was last updated 12 years, 6 months ago by
Barry.
-
AuthorPosts
-
October 14, 2013 at 2:09 pm #70938
crawforddesign
ParticipantWhen the date is changed in the search bar, the content doesn’t update unless you press enter. The content only flashes away and then back, but it does not change the events displayed. I have edited the view to display the formatted event content. I have not reverted to the original code but will do that next, wanted to go ahead and get this posted.
October 15, 2013 at 7:51 am #71073Barry
MemberI visited your site, changed the date via the datepicker to Nov 2014 and hit “Find Events” – the content of the view correctly updated to show events in or after Nov 2014 only: can you confirm if that’s different from your own experience?
October 15, 2013 at 8:07 am #71085crawforddesign
ParticipantI turned off the live Ajax updating which is what was causing the problem. When you searched without physically hitting enter or find events the content would not actually update.
October 15, 2013 at 1:26 pm #71154Barry
MemberOK, so are you happy with things as they are? Unfortunately it’s hard to assess the situation if we cannot see it.
October 15, 2013 at 1:46 pm #71157crawforddesign
ParticipantIt will do for now, I would like to have it fixed though. I can enable the ajax refresh for a day since that seems like it would be helpful. As of this post I will have it enabled so you can take a look at it. Because I think it could be very relevant. In order to get the formatted content in the display I am using ‘the_content()’ in loop.php to load the full post content. I replaced this with the original file and was still getting the error. I wanted to make sure you were aware of this edit regardless though. Here’s the entire code of ‘views/photo/loop.php’:
‘
<div id="post-” class=””>‘
Thanks for your help,
AlanOctober 15, 2013 at 1:51 pm #71158crawforddesign
ParticipantWell, that didn’t display correctly. here’s a link to a jfiddle with the code: http://jsfiddle.net/HcdhS/
October 15, 2013 at 3:05 pm #71165Barry
MemberThanks!
I visited your site, changed the date via the date picker to 2014-10-02 and it instantly updated without me hitting enter. Given your test data of two events it seemed to operate correctly with only the event taking place in November 2014 showing after making that change.
So it basically seems to be in order to me, can you confirm if that clarifies things for you or if I’m misunderstanding / would need to carry out different steps to see the problem?
October 15, 2013 at 4:10 pm #71172crawforddesign
ParticipantThere are just over a hundred previous events. The reason you are only seeing 2 is that the date isn’t updating the ‘feed.’ Change the date to 2006 and don’t hit enter. It will continue to display the same events. Then hit enter and it will load the correct ones.
October 16, 2013 at 1:18 pm #71343Barry
MemberOK, thanks!
There definitely does seem to be some sort of problem at work here where it does not always update to show the anticipated results and hitting enter, or reselecting the date via the datepicker and letting it “auto update”, does indeed appear to resolve things.
I have not reverted to the original code but will do that next, wanted to go ahead and get this posted.
Can you now try this and, unless you already did so, at the same time repeat the initial troubleshooting steps you performed (of deactivating all other plugins and switching to a default, unmodified theme)? Thanks!
-
AuthorPosts
- The topic ‘Photo/List View content isn’t updated correctly with date change.’ is closed to new replies.
