Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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:

    https://codex.www.ads-software.com/Function_Reference/the_content

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

    Thread Starter GopTun

    (@goptun)

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

    Thread Starter GopTun

    (@goptun)

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

    Plugin Author Marcus (aka @msykes)

    (@netweblogic)

    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 https://codex.www.ads-software.com/The_Loop#Nested_Loops

    Thread Starter GopTun

    (@goptun)

    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.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘em-xxxx.php pages showing up in every wysiwyg widgets’ is closed to new replies.