Home › Forums › Calendar Products › Events Calendar PRO › ECP & Posts 2 Posts
- This topic has 12 replies, 3 voices, and was last updated 10 years ago by
Support Droid.
-
AuthorPosts
-
March 18, 2016 at 5:58 am #1090910
lewiscenterarts
ParticipantFollowing the update to 4.1 our “Related posts” functionality stopped working. Can you please point me in the direction of any relevant documentation or discussion, to help us get back on track? Is there any hook or filter that gets fired when recurrent event updates are happening so we can hook in and update Posts 2 Posts relations as well?
March 18, 2016 at 6:10 am #1090913lewiscenterarts
ParticipantHere are screenshots:
ECP and The Events Calendar both de-activated:
http://wavefire.staging.wpengine.com/wp-content/uploads/2016/03/ECP-EC-turned-deactivated.pngJust The Events Calendar is active:
http://wavefire.staging.wpengine.com/wp-content/uploads/2016/03/EC-only-activated.pngBoth activated:
http://wavefire.staging.wpengine.com/wp-content/uploads/2016/03/ECP-EC-activated.pngMarch 18, 2016 at 7:59 am #1090958George
ParticipantBeautiful site—I’m sorry to hear that these problems are happening there!
Can you clarify the nature of the “Related Posts” section in question? Just to be clear, for example, is this a widget or something constructed with Posts 2 Posts specifically?
Also, are those “posts” of the Event post type? Are you “connecting” events to events and then these specific connections show up in that “related posts” section?
Or are those posts of a different post type? Or a mix of types?
Any further elaboration on the details of how that’s constructed would help quite a bit—I will use this information to try and recreate your problems!
Thank you,
GeorgeMarch 22, 2016 at 7:27 am #1092307lewiscenterarts
ParticipantThis reply is private.
-
This reply was modified 10 years, 1 month ago by
lewiscenterarts.
March 22, 2016 at 9:59 am #1092461George
ParticipantThank you for elaborating on all of this, @lewiscenterarts. The site is beautiful and meaningful, and I would love to dig in more here, but unfortunately the nature of your problem is one that seems to be arising from that custom coding and rendering of the “related” items.
Troubleshooting that, then, is something I’m not quite able to do unless I were to read through all of that code directly—in the context of the functions.php file and such—but this is unfortunately a level of support we cannot provide here on the support forums. 🙁
This article elaborates on this a bit: https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/
I’m genuinely sorry about this, @lewiscenterarts. The problem is just a bit too far outside the scope of our license support. Please let me know what you think, and if there are perhaps any more specific clarifications of features/functions/behaviors/etc. I can make here.
In closing, I would just like to mention that, if possible, you can try (or have your developer try) to post the code that filters “filter_tribe_joins_in_subselect” into a Gist at http://gist.github.com. Post the whole, un-edited function or functions. I cannot guarantee an outcome of value here, but am happy to take a look in the off-hours of our support forums.
Thank you—and again, sorry for the trouble here.
Sincerely,
GeorgeMarch 22, 2016 at 11:47 am #1092540lewiscenterarts
ParticipantThis reply is private.
March 23, 2016 at 10:28 am #1092987George
ParticipantThanks so much for this, Justin. I’ll be taking a deeper dive into this today, but in the meantime, there is one last thing I can think of recommending that might helpful:
Do any errors pop up on your site if you head to your site’s wp-config.php file and change this line of code:
define('WP_DEBUG', false);to this:
define('WP_DEBUG', true);That will display PHP errors if any exist, which might be quite useful here. If any do pop up, copy and paste them in full and share them here.
Thank you! And stay tuned—I’ll be exploring things a bit today and will see if I can spot anything outright problematic.
— George
March 23, 2016 at 10:47 am #1092999lewiscenterarts
ParticipantThis reply is private.
March 24, 2016 at 11:08 am #1093563George
ParticipantThanks for posting all of this, @Lewiscenterarts!
I’ve taken a look through this and am sorry to say that no definitive course of action has come to mind. 🙁 I’m not quite sure what’s going on here, and at bottom I think this is something that will require the more in-depth working of your Developer and such.
There is one thing I can recommend trying that could make an impact here—if anything, it might reduce the Error Log output:
Head to your general Events Calendar settings in your wp-admin (Events → Settings → General) and find the option that is labelled, “Recurring event instances.” Whatever its current value is, toggle it to the opposite of that and save the settings.
Upon doing this, does anything improve? Let me know!
Thank you,
GeorgeMarch 24, 2016 at 11:51 am #1093617lewiscenterarts
ParticipantThis reply is private.
-
This reply was modified 10 years, 1 month ago by
lewiscenterarts.
March 24, 2016 at 12:27 pm #1093624lewiscenterarts
ParticipantThis reply is private.
March 24, 2016 at 3:40 pm #1093715George
ParticipantI’m glad to hear this. That option, when checked, only shows one instance in the loop. Un-checked, it lets all instances into the loop.
So, no, you cannot have it be out of the loop without having that option checked, which causes the related-events problems to begin with. For further refinement of things from here, like cleaning up your lists of events, you’ll have to work with your developers. I’m sorry about the limitation in the plugins at this time that cause this!
A way to possible hide all recurring instances other than that first event would be to use CSS, like for example adding this to the bottom of your theme’s style.css file:
.type-tribe_events.tribe-recurring-event-child {
display: none !important;
}
This isn’t perfect and unfortunately getting things exactly as you want will take some refinement and further custom development, but I would like to mention that improving this is squarely on our radar. The problem is arising from the collapse_sql() method, which itself is in the Tribe__Events__Pro__Recurrence__Queries class—we don’t have any immediate bugfixes on the horizon because it’s not a simple bug fix that would fix this, but an actual re-factoring of our current approach in that method, but hopefully in the coming months we’re able to improve compatibility of this with other plugins, themes, code, etc.
Thank you,
GeorgeApril 8, 2016 at 9:35 am #1100118Support 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. -
This reply was modified 10 years, 1 month ago by
-
AuthorPosts
- The topic ‘ECP & Posts 2 Posts’ is closed to new replies.
