WordPress.org

Ready to get started?Download WordPress

Forums

Events Manager
[resolved] em-xxxx.php pages showing up in every wysiwyg widgets (6 posts)

  1. GopTun
    Member
    Posted 1 year ago #

    I upgraded to latest wysiwyg-widgets 2.0.1 and latest events manager 5.3.4. Since the update I have all em-xxxxx.php pages showing up in the normal page content, but also in every single wysiwyg widget (test made in localhost with 2 wysiwyg widgets).
    See link:
    http://pattayah3.com/events-2/

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    Most likely it's because the other plugin is using the_content incorrectly, i.e. outside the loop, as documented here it must be in the loop:

    http://codex.wordpress.org/Function_Reference/the_content

    I've seen this happen before, in all cases it was due to this.

  3. GopTun
    Member
    Posted 1 year ago #

    Marcus,
    thank you very much for your reply. I found that tag in one of the 3 .php pages in the wysiwyg widgets plugin. I will head over and address the problem in its support forum.

    Just one more hint I would like to add in case the error might be caused by something else: the problem started only AFTER i had updated the events manager plugin (the other i had updated a few days earlier with no error consequences).

  4. GopTun
    Member
    Posted 1 year ago #

    The problem lies with Events Manager. I installed another wysiwyg plugin: Smart Blocks and I have the same problem.

  5. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 1 year ago #

    still pretty sure it's not us. both plugins may be doing the same thing.... it's a common mistake

    I looked at the first plugin since it's more popular (wysiwyg-widgets) and I can confirm they're doing exactly what I'm saying:

    $post = get_post($id);
    ....
    $content = apply_filters('the_content', $post->post_content);

    it's not being run in the loop, so when we hook into the_content we're assuming the $post is still the one of the page, not the individual widget.

    @DvanKooten - check this out for example http://codex.wordpress.org/The_Loop#Nested_Loops

  6. GopTun
    Member
    Posted 1 year ago #

    Marcus,
    Thank you for your reply and for taking the time to look into the other plugin. Your reply makes sense. I am in no way familiar with php coding, but I can always try to figure this out hoping I will be lucky and strike gold. So far no reply from the other side.
    Thanks again. Perfect service.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic