Adding custom tags in Wordpress

Posted by givp on Stack Overflow See other posts from Stack Overflow or by givp
Published on 2010-03-14T12:43:00Z Indexed on 2010/03/14 12:45 UTC
Read the original article Hit count: 248

Hello,

I'm creating a new WP theme and I would like to allow the user to insert a divider in between paragraphs or images he/she is entering, for a post/page.

I want the output to be something like:

<div class="divider"></div>

But I don't want the user to have to enter HTML in the WYSIWYG editor. Is it possible to ask them to enter something like:

<-- break -->

and then translate that to the div markup on display?

Thanks.

© Stack Overflow or respective owner

Related posts about Wordpress

Related posts about wordpress-theming