mtharani
Forum Replies Created
-
Forum: Plugins
In reply to: [Gravity Forms Zero Spam] Whitelist or BypassSorry @gravityview not sure I understand how exactly this filter should work.
Forum: Plugins
In reply to: [Wired Impact Volunteer Management] jQuery Datepicker ConflictThis is with your plugin disabled, note the dates:
https://ibb.co/eJFPikAnd enabled.
https://ibb.co/hFxFpQAdding
remove_filter( 'the_content', 'wpautop' ); remove_filter( 'the_excerpt', 'wpautop' );Did nothing.
So this isn’t actually going to work after all. Even though this does remove the leading 3 <p><p><p> and closing </p></p></p>, it also removes any <p></p> added by WordPress to the content. Is there anyway to only remove the leading and closing <p> elements? Otherwise I’m forced to re-format hundreds of recurring events.
Ok, figured it out. Adding that code to the bottom of my themes functions.php file eliminated the extra <p></p>. I’ve since moved it to a plugin I made for conditional placeholders for locations, so I don’t have to worry about a theme update overwriting it. For original poster, you only need to use the following code:
remove_filter('dbem_notes', 'wpautop');Yeah, I’m not seeing a real solution there. It’s not entirely clear how/where those lines of code need to be added/replaced. I was unable to find this code in any files with “function” in the name.
add_filter('dbem_notes', 'wptexturize'); add_filter('dbem_notes', 'convert_smilies'); add_filter('dbem_notes', 'convert_chars'); add_filter('dbem_notes', 'wpautop'); add_filter('dbem_notes', 'prepend_attachment');I am also seeing this issue and would love to hear the solution. Thanks.
PS: I tried 2 wpautop disabling plugins, but they didn’t make a change to this problem (it did remove other <p> from content as expected). So not an issue with wpautop.