ECP & Posts 2 Posts

Home Forums Calendar Products Events Calendar PRO ECP & Posts 2 Posts

Viewing 13 posts - 1 through 13 (of 13 total)
  • Author
    Posts
  • #1090910
    lewiscenterarts
    Participant

    Following 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?

    #1090913
    lewiscenterarts
    Participant
    #1090958
    George
    Participant

    Beautiful 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,
    George

    #1092307
    lewiscenterarts
    Participant

    This reply is private.

    #1092461
    George
    Participant

    Thank 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,
    George

    #1092540
    lewiscenterarts
    Participant

    This reply is private.

    #1092987
    George
    Participant

    Thanks 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

    #1092999
    lewiscenterarts
    Participant

    This reply is private.

    #1093563
    George
    Participant

    Thanks 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,
    George

    #1093617
    lewiscenterarts
    Participant

    This reply is private.

    #1093624
    lewiscenterarts
    Participant

    This reply is private.

    #1093715
    George
    Participant

    I’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,
    George

    #1100118
    Support Droid
    Keymaster

    This 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.

Viewing 13 posts - 1 through 13 (of 13 total)
  • The topic ‘ECP & Posts 2 Posts’ is closed to new replies.