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.
Autop is done as a filter, so you can add or modify the filter or access the post text directly using $post->post_content.
Check out my WP Unformatted plugin.
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.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…