Home › Forums › Calendar Products › Events Calendar PRO › List view exclude category previous/next pagination error
- This topic has 7 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 24, 2012 at 8:15 am #22624
Richard
MemberHello. I added a bit of code to exclude a category from the list view, and now the next/previous links don’t function properly. The URLs look fine, but ../events/past/page/3 produces the same results as ../events/upcoming/page/2 and so on.
Here’s the exclude category code http://pastebin.com/CzyPS9aJ
I recall having pagination problems with WP general, so I’m not sure if this is ECP or WP.
Thanks for any insight.
Richard
July 24, 2012 at 1:27 pm #22655Rob
MemberHey Richard. I can get a dev to take a look at this if the issue persists; but, have you checked whether this could be specific to your code? I’d be interested in hearing if the tips Jonah provided in this thread (https://theeventscalendar.com/support/forums/topic/exclude-category-from-both-gridview-and-listview/), which best I can tell overlap with your goal, yield the same result. Are you down to give that a go and let me know the results?
Thanks in advance!
July 25, 2012 at 10:00 am #22737Richard
MemberSure. I’ll give that a go and edit the conditional statements so that it applies to list view only.
Thanks!
July 25, 2012 at 11:06 am #22748Richard
MemberTried it out. Works great! I just had to comment out this line so that it wouldn’t affect the calendar/grid view…
|| $query->query_vars[‘eventDisplay’] == ‘month’
The only thing not quite right (but I can live with this one) is that clicking ‘previous’ takes you from ../events/ to ../events/past which is the same as ..events/past/page/1
Previous events don’t show until ..events/past/page/2
Here’s the Website in action http://www.lemongrovecafe.com/events/
July 25, 2012 at 6:00 pm #22761Rob
MemberThanks for confirming as much, Richard. Glad to hear that resolved the core issue here and that you were able to identify the line that needed commenting out.
The site is looking hot. Did that /events/past issue exist before you made this code tweak? If so, it might be a bug and I can look into it upon receiving confirmation from you. Let me know.
July 26, 2012 at 10:44 am #22795Richard
MemberThanks, Rob. The site is still a work in progress, but it’s getting there.
Looks like there’s no bug. I didn’t notice at first that ../events/past list the events in descending order. All good.
There is, however, another issue I’m having due to the new code in function.php, but that might be something I have to figure out on my own.
I have this page – http://www.lemongrovecafe.com/dinner-specials – that outputs dinner specials. When viewing the source of that page I can copy and paste perfectly formatted for the weekly e-newsletter. As you can see it’s showing everything NOT IN ‘special’ and no longer what’s IN ‘dinner’.
Again, I completely understand if this is something I need to figure out.
July 27, 2012 at 10:08 am #22840Rob
MemberThanks, Richard – glad to hear that the /events/past issue is resolved. As for your new one here: that is sadly a bit outside my area of expertise. Did this not happen before adding the code tweak that fixed your initial issue?
July 7, 2015 at 6:25 am #977439Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘List view exclude category previous/next pagination error’ is closed to new replies.
