• Resolved trevorp

    (@trevorp)


    The sidebar post excerpts in Event views is replaced with text from the Event:
    “Calendar Add to Calendar Add to Timely Calendar Add to …Read More ?”
    This is the text from the Calendar and Add to Calendar buttons.

    Note that if the settings option “Hide Subscribe/Add to Calendar buttons in calendar and single event views” is set, other text from the Event is displayed in the excerpts.

    The theme is Divi, I have tried switching the theme to Twenty Seventeen but the problem is still there.

    Obviously I could disable the sidebar in events to get round the problem.

    Regards,

    Trevor

    • This topic was modified 6 years, 5 months ago by trevorp.
Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @trevorp,

    This is likely a conflict, if not with the theme, it could be with another plugin. To test this, disable all plugins and then check if the problem recurrs — then re-enable each one until you find which one caused the problem.

    If you try switching theme’s again, be sure to clear any cache.

    Let me know the results. If it’s still a problem, you can try doing a manual reinstall.

    Thread Starter trevorp

    (@trevorp)

    I tried disabling the plugins that would most likely affect the sidebar but there was no change. However the plugin that displays the recent posts/excerpts is “Recent Posts Widget Extended”, so most likely this is not working correctly with your Calendar plugin in the Events view. However it does work in the calendar page.

    I would like to continue using the “Recent Posts Widget Extended” plugin so I guess the only solution is to turn the sidebar off in the event pages. Hopefully this conflict can be fixed in a later release.

    Regards,

    Trevor

    Hi @trevorp,

    Unfortunately conflicts with the plugin are inevitable even though our development team makes every effort to use unique variables and function names in the coding. we would need to know the specific conflict source before we could fix anything. It may be feasible to ask the plugin vendor’s support staff also.

    Thread Starter trevorp

    (@trevorp)

    I am not sure this should have been marked as resolved.
    Anyway, I decided to debug the plugins myself.

    The “Recent Posts Widget Extended” plugin is calling the WP “get_the excerpt” function to retrieve or generate the post excerpts, and it is called correctly within “The Loop”. If a post has no custom excerpt, then one is generated from the post content using function wp_trim_excerpt, which filters the post content, named “the_content”.

    The calendar plugin filters the event post content, and adds the filter “the_content” in function “render”, in file “/lib/http/response/render/strategy/html.php”.
    The corresponding filter function is called “event_content”, also situated in this file, which inserts details of the event along with the regular post content. However, unlike the “append_content” filter function it does not check whether execution is in The Loop. By adding a check using WP function “in_the_loop”, the filter is prevented from returning the event contents whilst the post excerpts are being processed, and appears to solve the problem.

    I hope I have not misunderstood anything. I would be grateful if you could pass this information on to your development team.

    Regards,

    Trevor

    Hi @trevorp,

    Tickets can be re-opened at any time, and I respond to all replies regardless.

    I will pass the information you’ve found to our Dev Team. Thankyou.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sidebar post excerpts not working in Event view’ is closed to new replies.