After using basically every BBCode plugin available for WordPress–and finding every last one of them lacking–I decided to write my own. This one does not use shortcodes, as shortcodes apparently freak out when you want multi-line enclosed tags. My plugin applies filters to six hooks:
- the_content
- comment_text
- the_excerpt
- the_content_rss (strips BBCode)
- comment_text_rss (strips BBCode)
- the_excerpt_rss (strips BBCode)
The following tags are supported:
[b] -- Bold
[i] -- Italics
[u] -- Underline
[s] -- Strikeout
[url{=http://...}]{URL-or-link-title}[/url] -- Links
[quote] -- Blockquote
[size=n] -- Font size
[color=#nnnnnn] -- Font color
[img] -- Image
[code] -- Code
If there are other tags you'd like to see, by all means, request them in the comments.
This plugin is released under the GPL.
To download this plugin, please proceed to the WordPress plugin page.
JonathonWally
K.E. Ireland
Levi Montgomery
Great work on this plugin. I’m looking forward to the inclusion of list tags.
I can do that. I’ll add them and send you an email. Thanks!
It would be nice to have list tags
All that should be required is for you to install and activate the plugin. I have used this with the “Visual HTML” mode, simply putting BBCode in square brackets, and it works. Could you send me an example of a post you have that isn’t working? Send to: gorzek (at) gmail (dot) com
I have the plugin installled and activated, but it does not appear to be working. When I add BBCode to a new post, it doesn’t convert. Where am I supposed to implement the code? At the top of the “add new post” there’s only “visual” and “html”.
[...] found the plugin system very easy to work with, having written a plugin of my own for a niche where the available plugins were inadequate. With no prior experience writing WordPress [...]
Yes, I already submitted a request. Once it is approved, I’ll get it uploaded to subversion for them. Who knows, I may end up writing other plugins, if there are things I need that no current plugins do adequately.
I assume you’ll be putting this up in the plugins directory at wordpress.com?
Levi Montgomery´s last blog ..Photographers, Musicians, and Authors – Further Thoughts on Self-Publishing