Home › Forums › Calendar Products › Events Calendar PRO › Recurring event showing up multiple times in blog loop
- This topic has 15 replies, 4 voices, and was last updated 9 years, 7 months ago by
sacawebmaster.
-
AuthorPosts
-
September 5, 2016 at 6:15 pm #1160163
sacawebmaster
ParticipantSince updating to the latest version of the plugin, creating a recurring event seems to create an event page for each individual recurrence. This is not a problem in itself, but as I have “Include events in main blog loop” checked in settings (the idea being to use the main blog loop to advertise upcoming events on the same page as regular news), each of these occurrences now shows up and as a result my site’s front page has been flooded with the same content displayed over and over.
Please advise how I can either only display one post from each event in the main blog loop or else disable the creation of pages for each recurrence as this isn’t a feature I need at all.
Thanks.
September 6, 2016 at 2:33 pm #1160647Andras
KeymasterHi David,
First of all, thanks for using our plugins and going Pro! I’m sorry you are having this issue with the recurring events. Let me help you solve this so you get the result you want.
There is a setting under Events > Settings > General tab > General Settings section > Recurring event instances
If you check that does it solve your issue?
Andras
September 9, 2016 at 1:32 am #1161921sacawebmaster
ParticipantI previously replied to this thread but it does not seem to have shown up here.
Selecting the option in Settings tat you recommend takes the front page of my site from having the same post repeated over and to over to an empty page with the message “No posts found matching your criteria”.
While I haven’t looked under the hood I can only assume (and this is a pure guess) that this is because the entries for each instance are still being created but somehow removed from the WP_Query() array before display, resulting in an empty array that is being interpreted as there being no posts returned at all, when in fact the posts ‘behind’ the hidden instance posts should be displayed.
September 9, 2016 at 6:12 am #1161978Andras
KeymasterHello David,
I’m sorry this didn’t solve the problem. Let’s go further.
1. Could you please share your system information with me in a private reply?
Here’s a handy guide how you can do that:
https://theeventscalendar.com/knowledgebase/sharing-sys-info/2. Can you test the results in the following way:
- Events > Setting > General tab > Recurring event instances is switched on, so only the first is shown.
- Events > Setting > General tab > Include events in main blog loop is switched on
- Switch of all plugins except for the Modern Tribe ones
- Switch to a default theme like twentysixteen
Please test it like this, as on my local install this produces the desired result: on the landing page of the site I have the blog posts and the events listed, and from the recurring event I see only the first instance.
If this gives you the expected result, then switch your theme on, and re-check. If it still works, then switch back you plugins one at a time and check which causes an issue.
Let me know the result and if it’s still not working we will try to look further.
Thanks and cheers,
AndrasSeptember 10, 2016 at 4:16 am #1162375sacawebmaster
ParticipantOk, so it’s pretty clear that this is a problem with the theme I’m using (ticking Events > Setting > General tab > Recurring event instances causes no posts to be displayed on the front page), which is strange because everything was working fine up until the latest version of TEC.
I realise this is is perhaps a little outside the scope of the support forum, but as this error seems to be related somehow to the latest update I’ve uploaded my theme’s rather basic index.php to http://pastebin.com/R3gjSFEG – could you please have a look at this and see if anything seems to be a possible cause?
Although it doesn’t seem to be necessary anymore, as requested I’ve also put the system info here in case it becomes useful: http://pastebin.com/Q0YBVr3U
September 12, 2016 at 12:21 am #1162671Andras
KeymasterHi David,
Thanks for checking and sharing!
Indeed, it is a bit beyond of the level of support we provide, but I will take a look at your index (or get someone to look at it 🙂 ) and will get back to you soon on what we find. I ask for a bit of patience.
Thanks & cheers,
AndrasSeptember 12, 2016 at 2:46 pm #1163018Andras
KeymasterThis reply is private.
September 12, 2016 at 11:08 pm #1163222sacawebmaster
ParticipantThis reply is private.
September 13, 2016 at 12:21 am #1163238Andras
KeymasterThis reply is private.
September 14, 2016 at 1:07 pm #1164187Andras
KeymasterThis reply is private.
September 15, 2016 at 6:01 am #1164543sacawebmaster
ParticipantThis reply is private.
September 15, 2016 at 7:12 am #1164566Andras
KeymasterHello David,
Happy to help.
Erm… I don’t quite understand the question, I’m sorry. Could you please clarify? What is the end result you want to achieve? So far my understanding is that you want to show your events in the blogroll.
Unfortunately there is no sticky system in place for the events. I guess choosing which events are shown in the blogroll could be done with some customization. I’m thinking having a specific category for those events and somehow modifying the query based on that.
Cheers,
AndrasSeptember 15, 2016 at 7:21 am #1164568sacawebmaster
ParticipantHi Andras,
You previously suggested that I remove from functions.php the code that is mentioned in this knowledgebase article, which is used to sort events in the blog loop by post date rather than event date.
My question was – If I remove this code, what other method can I then use to order the posts that show on my front page?
Thanks,
David.September 19, 2016 at 2:07 pm #1166083Andras
KeymasterHi David,At the moment I don’t know of any other method to change the order of the evens in the blogroll, I’m sorry.It’s highly likely it is possible with further tweaking that snippet, but that is beyond the scope of our support I’m afraid.
Please note, when I tired to switch to your theme, I didn’t have the EC Pro activated and the site threw me a fatal:
<b>Fatal error</b>: Uncaught Error: Class ‘TribeEventsPro’ not found in D:\www\tec\wp-content\themes\SACA_theme\functions.php:54 Stack trace: #0 D:\www\tec\wp-includes\plugin.php(524): remove_related_events(”) #1 D:\www\tec\wp-settings.php(411): do_action(‘init’) #2 D:\www\tec\wp-config.php(90): require_once(‘D:\\www\\tec\\wp-s…’) #3 D:\www\tec\wp-load.php(39): require_once(‘D:\\www\\tec\\wp-c…’) #4 D:\www\tec\wp-admin\admin.php(31): require_once(‘D:\\www\\tec\\wp-l…’) #5 D:\www\tec\wp-admin\themes.php(10): require_once(‘D:\\www\\tec\\wp-a…’) #6 {main} thrown in <b>D:\www\tec\wp-content\themes\SACA_theme\functions.php</b> on line <b>54</b>
You might want to check this, maybe include an if statement to check if the Pro plugin is activated before activating the theme.
Let me know if you have any other questions.
Cheers,
AndrasOctober 11, 2016 at 9:35 am #1174990Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Recurring event showing up multiple times in blog loop’ is closed to new replies.
