• Resolved omnidreamer

    (@omnidreamer)


    Hello,

    I’ve installed the plugin on two different sites. Both are using WordPress ver. 4.0. It works just as described for the site that is newer and had next to no plugins installed, but on the site where I really need it I can’t seem to get it to work. I’ve tried disabling a few plugins temporarily to see if that would solve it, but didn’t. Then I tried installing each plugin from the older site onto the newer site until one broke this plugin.

    I found that the Raw HTML plugin which I’ve been using for a similar effect is the culprit, at least on the new site. On the older site, when I disable the Raw HTML plugin this doesn’t fix the problem with Toggle wpautop. I’m able to click the checkbox to tell a page or post to disable wpautop, but when I do a basic test of wrapping <a href=""></a> tags around a <div></div> it still wraps <p></p> tags around the <a href=""> and then around </a>.

    Any ideas what I should try next?

    https://wordpress.org/plugins/toggle-wpautop/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Jonathan Desrosiers

    (@desrosj)

    Hey omnidreamer,

    I am not familiar with Raw HTML plugin, but downloading it and looking quick, it looks like it does something with wpautop. I think that one of the other plugins may be overriding ours.

    Can you give us a list of the plugins running when it does not work?

    Thread Starter omnidreamer

    (@omnidreamer)

    Hi Jonathan,

    Sure thing, the plugins running are as follows:

    • Akismet
    • Collapse-O-Matic
    • Configure SMTP
    • Contact Form 7
    • Disqus Comment System
    • Google XML Sitemaps
    • Raw HTML
    • Social Media Feather
    • W3 Total Cache (also using CloudFront for CDN)
    • WordPress SEO
    Thread Starter omnidreamer

    (@omnidreamer)

    Any ideas? We’re also using a CDN, but I don’t imagine that would affect your plugin since it is all php.

    Plugin Author Jonathan Desrosiers

    (@desrosj)

    I haven’t gotten to look at any of those other plugins, but I know that Akismet, Disqus, Google XML Sitemaps, WordPress SEO, and W3TC are all plugins that I use on various sites in combination with this plugin, and don’t have any issues.

    I would look in the settings of Raw HTML and see if there is something for wpautop. My hunch is that one of the other plugins is re-adding the wpautop filter to the content.

    Keep in mind, if you disable Raw HTML and then look again at the site, you need to make sure you clear the cache in order to see the changes.

    Hope this helps.

    Thread Starter omnidreamer

    (@omnidreamer)

    I copied the theme from the important site over to our new site and confirmed that something in that theme is causing wpautop to be added back in. After searching through the comments for that theme I found out the theme had a file called common-functions.php which included these lines of code to alter the order in which wpautop is applied:

    remove_filter( 'the_content', 'wpautop' );
    add_filter( 'the_content', 'wpautop' , 99);
    add_filter( 'the_content', 'shortcode_unautop',100 );

    So after commenting that out and disable the Raw HTML plugin I was able to get your plugin working on our important site.

    Plugin Author Jonathan Desrosiers

    (@desrosj)

    Great! Glad you got it to work.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Having trouble getting it to work’ is closed to new replies.