calvinhsu
Member
Posted 1 year ago #
I'm running multisites, some users would like to insert a line in their posts, but I don't like to tell them to switch to HTML mode and add the <hr /> tag everytime they need it.
So is there an easy way to do this, any plugin, or another way of adding a horizontal line rather than the hr tag?
jonradio
Member
Posted 1 year ago #
I would suggest creating a ShortCode that simply outputs "<hr />".
I prefer the Shortcode Exec PHP plug-in for creating shortcodes (and php, in general) because of its high level of security. With it, the entire definition would be return '<hr />';
Your users would simply type [line] or whatever you choose to call the shortcode.
ref. - http://wordpress.org/extend/plugins/shortcode-exec-php/
calvinhsu
Member
Posted 1 year ago #
thanks @adiant, this plugin is great ! Flexible and easy for end users to use.
traceywashere
Member
Posted 8 months ago #
this plug in is FANTASTIC!!! exactly what i was hoping for!
jonradio
Member
Posted 8 months ago #
As for my discussion of hr tags, I don't exactly know why, but I had one Page of my site containing the hr tag twice that looked odd when I switched to Theme Twenty Eleven a few days ago. Other pages with hr worked fine.
Just a Heads Up.
As for Shortcode Exec PHP plug-in, I am still a huge fan!