chris at lod.com
Thu Aug 22 00:26:37 UTC 2013
did you try this?
remove_filter( 'the_content', 'wpautop' );
add_filter( 'the_content', 'wpautop' , 99 );
add_filter( 'the_content', 'shortcode_unautop', 100 );
add to the bottom of your functions.php file
On 2013-08-21 3:25 PM, "Dobri" <dyordan1 at ramapo.edu> wrote:
>Thanks but I've seen that post already. I'm actually trying to move away
>from a solution that moves wpautop after short codes are rendered since
>I've had to implement multiple workarounds for plugins that rely on
>regular short code rendering. I ended up just implementing my own unautop
>that works for my needs. Almost like this guy's new solution linked at
>the top with a few tweaks. I'm still open to better alternatives. I was
>just interested why a built-in feature of wordpress doesn't really
>gets unautop-ed into
>I'd say that's broken.
>On Wed, 21 Aug 2013, at 3:09 PM, Chris McCoy wrote:
>> have a look at this.
>> On 2013-08-21 11:40 AM, "Dobri" <dyordan1 at ramapo.edu> wrote:
>>> Hey WordPress Hackers,
>>> I was struggling with shortcode_unautop not working for a while and I
>>> looked into the function to figure out what's wrong. I've created a
>>> bin with the code in case you don't feel like finding the function
>>> (http://pastebin.com/VDMdXxj0). My question is: is there a reason some
>>> the "*" repetitions also have a "+" directly following? I personally
>>> done monsters of regular expressions and never seen the combination
>>> "[whatever]*+". Am I missing something? Also, when I checked with
>>> http://regexpal.com/, removing all the extra + signs magically made the
>>> function work *exactly* as expected. Is this a bug or do I not know
>>> as good as I though I do?
>>> Also, if there's nothing buggy with the function, what would be the way
>>> to make sure something like the text in the bin below renders
>>> Should I just remove the shorcode_unautop filter and do my own unautop?
>>> Thanks for any help with this!
>>> wp-hackers mailing list
>>> wp-hackers at lists.automattic.com
>> wp-hackers mailing list
>> wp-hackers at lists.automattic.com
>wp-hackers mailing list
>wp-hackers at lists.automattic.com
More information about the wp-hackers