WordPress.org

Ready to get started?Download WordPress

Forums

Is there an easy way to insert hr tag in posts? (5 posts)

  1. calvinhsu
    Member
    Posted 3 years 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?

  2. jonradio
    Member
    Posted 3 years 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/

  3. calvinhsu
    Member
    Posted 3 years ago #

    thanks @adiant, this plugin is great ! Flexible and easy for end users to use.

  4. traceywashere
    Member
    Posted 2 years ago #

    this plug in is FANTASTIC!!! exactly what i was hoping for!

  5. jonradio
    Member
    Posted 2 years 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!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags