WordPress.org

Ready to get started?Download WordPress

Forums

Events Made Easy
[resolved] overwrites EXCERPT of other widget (12 posts)

  1. Seven
    Member
    Posted 1 year ago #

    I installed Events Made Easy - so far so good. Problem: When I click on a event for details, it overrides the Excerpt-Text of my posts, shown in my widget (tw-recent-posts) on the right sidebar. Also with other recent-posts-widgets i doesn't work, so I think it'a problem of EME.

    As long as I navigate through normal posts/pages, everything is fine: http://www.d-f.cc/~retrieve/?page_id=470
    As soon as I click on a event, the excerpt of my posts goes wrong: http://www.d-f.cc/~retrieve/?page_id=491&event_id=4 (see right sidebar on the top!)

    http://wordpress.org/extend/plugins/events-made-easy/

  2. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    I need to test this out myself, but can you try the folowing:
    in the file eme_events.php, look for the lines (at around line 783):

    if (count($wp_current_filter)>1 && end($wp_current_filter)=='the_content' && $eme_count_arr['the_content']>1) {
          $eme_event_parsed=1;
        } else {
          $eme_event_parsed=0;
        }

    and change it into:

    if (count($wp_current_filter)>1 && end($wp_current_filter)=='the_content' && $eme_count_arr['the_content']>1) {
          $eme_event_parsed=1;
    } elseif (count($wp_current_filter)>1 && end($wp_current_filter)=='the_excerpt' && $eme_count_arr['the_excerpt']>1) {
          $eme_event_parsed=1;
    } else {
          $eme_event_parsed=0;
    }
  3. Seven
    Member
    Posted 1 year ago #

    At line 783 I can find this:

    if (count($wp_current_filter)>1 && end($wp_current_filter)=='the_content' && $eme_count_arr['the_content']>1) {
          $eme_event_parsed=1;
       } else {
          $eme_event_parsed=0;
       }

    After replacing it, there is still the same problem.

  4. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    This is weird ... I just tried it out myself locally: latest minimatica theme 1.0.8 and EME 1.0.7, latest WP 3.5 and everything works just fine (also latest posts)

  5. Seven
    Member
    Posted 1 year ago #

    I updated wordpress to 3.5, so I have exactly the same config as you - still the problem....! :o(

    Can any old and uninstalled plugins cause the problem?

  6. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    Hmmm ... come to think of it: I just used the defaults for the plugin tw-recent-posts, maybe that needs some extra settings to test?

  7. Seven
    Member
    Posted 1 year ago #

    I just used a post category to be showed, and activated show post title and show post excerpt - that's it. But also if I use another plugin/widget for latest posts, I get the same effect.

    Fort me it's that the "post-excerpt variable / placeholder" (or whatever) get's overwritten as soon as an event is called.

  8. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    It is one of the issues of wordpress where you can't say that you want your filters not to work on widgets ...
    I'll try later on this evening again

  9. Seven
    Member
    Posted 1 year ago #

    Okay, and thanks so far....

  10. Seven
    Member
    Posted 1 year ago #

    If I change the theme, the problem is solved. I deleted the minimatica theme, re-installed it and the problem is back again (without changing any theme-file). I also tried to clean-up the database with the clean-up plugin, but I still have the problem. I now have a second problem: By inserting a featured image, I get an empty Media Gallery with no pictures at all. Also this problems dissapears with the twenty-ten theme. Is it a theme problem or something is meesing up in the database?

  11. Seven
    Member
    Posted 1 year ago #

    The problem with the Media Library I was able to fix with this: http://wordpress.org/support/topic/issues-with-35?replies=17

  12. Franky
    Member
    Plugin Author

    Posted 1 year ago #

    I'm sorry, but I'm not able to find the issue with your theme.
    The only thing I can think of is that their integration of widgets is not correctly implemented, since they are still "in the loop" when inside the widgets: WP function call in_the_loop() returns true for the tw_recent_posts widget in minimatica, while it returns false for e.g. twentytwelve.
    Maybe you can talk about this with the minimatica devs?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic