Past Event Limitation?
-
Hi,
I wanted to create an archive for events, although I created events from 2014 to 2019 the [vsel-past-events] just shows 2018 and 2017. Why?
Amelie
The page I need help with: [log in to see the link]
-
Hi,
The page you’ve added contains some custom made code (such as a select box), so for me it’s difficult to understand how it works.
Guido
Hi,
no problem, I just removed the code.
What do you think?Amelie
Hi Amelie,
When I inspect your source code I notice the events navigation is missing, so there’s no pagination (next/previous events link). This means you only have 10 events OR there’s a conflict.
What’s the shortcode on your events page?
Oh, did you create your first events back in 2014 using this plugin?
If you did, there this in the FAQ of my plugin:All events posted with version 4.0 and older have one date only. To solve this please reset date.
Those events will not be listed until you’ve reset the date.
Guido
Hi Guido,
I created the events with this plugin just recently, so that shouldn’t be the issue.
I’ve created 50 Events, so there’s probably a conflict with my theme “Garfunkel”. Any ideas for a solution? I used the follwing shortcode: [vsel-past-events] or do you mean a different one?
Amelie
Hi,
So many of them are past events? If yes, please try this shortcode and check if there are 20 events listed:
[vsel-past-events posts_per_page="20"]
If 20 events are listed now, this must be a conflict with the pagination, so I have to do some testing with your theme, to find out what can cause this problem.
Guido
Yes and I have more past events (past concerts we played) I have to create. I added the shortcode and 20 events are listed now.
Amelie
Hi,
I have installed Garfunkel at my test site and the pagination (next/previous links) just work fine. Please check this temp link.
So did you perhaps remove the pagination code from my plugin? (file vsel-shortcodes)
Guido
Hi Guido,
I see what you mea. I didn’t remove the pagination code and I can see the “div.vsel-nav” in my code if I examine the site, but it doesn’t show.. Can I see if I switched it off somewhere?
Amelie
The div is present in the source code of your page but the code to display the links is not present.
The only thing I can think of is a conflict with another plugin.. one that hooks into the pagination as well.
But first you can try your blog page (if you have one, or create one) and check if pagination works there. You might want to change (decrease) the number of posts first, via Settings > Reading.
Guido
I deactived all other plug ins and it didn’t work, but what worked is to increase the number of posts via setting. I still don’t have the pagination, but now all old posts are shown.
Thank alot for the help!!
Hi,
I recommend the shortcode attribute
posts_per_page="20"
to set the number of posts. Change the number to your needs.I’ve also found the reason why the events pagination isn’t working. I think you have added the shortcode in a post, not a page.. am I right? Somehow the pagination doesn’t work in a post.
Guido
Yes it’s a Post Not a Page.
AmelieHi Amelie,
So this is not a theme or plugin issue, but how WP works; the next/previous posts pagination in a (single) post is not active. Meaning you can solve this by adding the VSEL shortcode on a page instead of a post.
I’m marking this topic resolved 🙂
Guido
- The topic ‘Past Event Limitation?’ is closed to new replies.