I want AutoBR back!

WordPress doesn’t support autobr. I want to turn it off for my “Pic Of The Day” posts as the Javascript used gets confused by <br>.
I should have written a Smarty modifier to display those pictures in the first place, but now I’ll probably delve into WordPress plugins and hook into the_content() to do the same.


4 Comments

Matt (15 comments.) on August 31, 2004 at 12:57 am.

Autop is done as a filter, so you can add or modify the filter or access the post text directly using $post->post_content.

Reply

Alex on August 31, 2004 at 1:20 am.

Check out my WP Unformatted plugin.

Reply

Donncha (1707 comments.) on August 31, 2004 at 9:28 am.

So, it’s all or nothing then? All comments have them or not?
After looking around the backend I realised that using the custom fields functionality is probably where I should be putting the referernce to picoftheday.
Ooh.. Smartyised the comments form! Fairly simple but it annoyed me that some of the comment functions used global to pass parameters. I had to write a small Smarty plugin that “globalises” a Smarty variable.

Reply

Dougal Campbell (29 comments.) on August 31, 2004 at 5:03 pm.

If you want to set filters on a per-post basis (for either post-content or comments), check out my Text Filter Suite plugin.

http://dougal.gunters.org/blog/2004/08/30/text-filter-suite

It wouldn’t be hard to add code that would let you *turn off* default filters based on a post custom field…

Reply

Leave Your Comment

Your email will not be published or shared. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>


Holy Shmoly! is Stephen Fry proof thanks to caching by WP Super Cache