[wp-hackers] Issues with wpautop and my plugin

Viper007Bond lists at viper007bond.com
Thu Aug 3 12:17:54 GMT 2006


Hmm, I'm doing basically BBCode as the placeholder:

[mytag foo="bar"]blah[/mytag]

If I do 99, the quotes get turned to fancy quotes. Anything I can do 
about that? Or should I just go any search for the fancy quoted version 
of my tag (which shouldn't be hard to do)?

Kimmo Suominen wrote:
> On Thu, Aug 03, 2006 at 04:57:09AM -0700, Viper007Bond wrote:
>> I'm adding HTML into a post via a filter.
>>
>> Let's say my code is structured like this:
>>
>> <this><is><some><html>
>>
>> The problem is that wpautop is doing basically this:
>>
>> <p><this><br />
>> <is><br />
>> <some><html>
>> </p>
>>
>> How can I stop those line breaks from being added? Should I like use 
>> some regex to get rid of them?
> 
> Add your filter after wpautop, e.g.
> 
> add_filter('comment_text', 'myfilter', 99);
> 
> Best regards,
> + Kimmo


More information about the wp-hackers mailing list