WPBeginner

Beginner's Guide for WordPress

  • Blog
    • Beginners Guide
    • News
    • Opinion
    • Showcase
    • Themes
    • Tutorials
    • WordPress Plugins
  • Start Here
    • How to Start a Blog
    • Create a Website
    • Start an Online Store
    • Best Website Builder
    • Email Marketing
    • WordPress Hosting
    • Business Name Ideas
  • Deals
    • Bluehost Coupon
    • SiteGround Coupon
    • WP Engine Coupon
    • HostGator Coupon
    • Domain.com Coupon
    • Constant Contact
    • View All Deals »
  • Glossary
  • Videos
  • Products
X
☰
Beginner's Guide for WordPress / Start your WordPress Blog in minutes
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
Recommended
WordPress Plugins
View all Guides

WPBeginner» Blog» Plugins» How to Add Custom Buttons with Post Editor Buttons in WordPress

How to Add Custom Buttons with Post Editor Buttons in WordPress

Last updated on August 6th, 2014 by Editorial Staff
30 Shares
Share
Tweet
Share
Pin
Free WordPress Video Tutorials on YouTube by WPBeginner
How to Add Custom Buttons with Post Editor Buttons in WordPress

When writing posts, have you ever found a need to add shortcodes or custom stylings? Is it something that you use often? If so, then you will like this article. We have available shortcodes, but sometimes its hard to explain it on a multi-author site. We looked around and found a fairly easy solution. Why don’t we just add custom buttons in our post editor. In this article, we will show you how to add custom buttons in WordPress with Post Editor Buttons.

Note: This trick only applies to the HTML mode of the editor.

Video Tutorial

Subscribe to WPBeginner

If you don’t like the video or need more instructions, then continue reading.

All you have to do is install and activate the plugin Post Editor Buttons Fork. Once activated simply go to Settings » Post Editor Buttons menu. There you can add as many buttons as possible.

This sample screenshot shows how we are adding a new button that will allow our users to easily insert the next page code.

Post Editor Buttons

Once you save the settings, you can see that the button is right here.

Post Editor Buttons Example

For making changes to the Visual Editor, you should consider using TinyMCE Advanced plugin which comes with a lot of options on its own.

30 Shares
Share
Tweet
Share
Pin
Popular on WPBeginner Right Now!
  • How to Properly Move Your Blog from WordPress.com to WordPress.org

  • Checklist

    Checklist: 15 Things You MUST DO Before Changing WordPress Themes

  • Google Analytics in WordPress

    How to Install Google Analytics in WordPress for Beginners

  • How to Fix the Error Establishing a Database Connection in WordPress

    How to Fix the Error Establishing a Database Connection in WordPress

About the Editorial Staff

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Trusted by over 1.3 million readers worldwide.

The Ultimate WordPress Toolkit

16 Comments

Leave a Reply
  1. Birgit says:
    Oct 17, 2012 at 7:28 am

    ah, now I understand, works fine! Thanks for your help, much appreciated!

    Reply
  2. Birgit says:
    Oct 17, 2012 at 7:27 am

    ah, now I understand, works great now! Thanks for your help, much appreciated!

    Reply
  3. Umer Rock says:
    Oct 13, 2012 at 9:34 am

    Thank you Syed Balkhi i was searching for this but i were not know what actual name for this plugin

    Reply
  4. Jürgen says:
    Oct 12, 2012 at 8:16 pm

    @Birgit… youre so right!

    I got the feeling (not for the first time) that wpbeginner don’t like plugins from german authors… so you recommend a plugin for adding buttons to the editor which has round about 3.000 downloads and ignore “AddQuicktag” from Frank Bueltge with over 100k downloads… why that, don’t tell me you don’t know about it :)

    just my 2cents

    Reply
    • Editorial Staff says:
      Oct 13, 2012 at 7:54 am

      I want to clearly state here that we have nothing against German authors or any other nationality for that sake. There are 21,782 plugins in the plugin repository at the time of writing this comment. And YES we do NOT know about all of them including the Add Quick Tag one that was mentioned. Honestly, we don’t know more than 300 of those plugins if that.

      -Syed Balkhi
      Founder of WPBeginner

      Reply
      • Jürgen says:
        Oct 13, 2012 at 9:43 am

        So then excuse me for that, was just a feeling. And thanks for your answer, I’am happy now that I was wrong :)

        Sorry ;)

        Reply
    • Mark says:
      Oct 13, 2012 at 10:41 am

      A little research goes a long way. Even VERY little research.

      I decided to see if Syed had ever recommended plugins by German authors. Honestly, if I hadn’t, I wouldn’t have mentioned it, because I don’t believe his choice was inspired by nationalities. But I wanted to know.

      I figured it would take me a while. This site has featured a lot of plugins, so I got ready for a long journey. I grabbed a coffee and set to work.

      The journey took me….next door. I clicked on the category ‘WordPress Plugins’, and the very next article after this one is https://www.wpbeginner.com/plugins/how-to-scan-your-wordpress-site-for-potentially-malicious-code/. The second item, Exploit Scanner has an international development team. English (UK), Irish, Canadian, American, and – surprise, surprise – German.

      Scroll down a little, and you find a plugin from an author in Africa. Still on page one of ‘Plugins’, one by an author in Slovenia. Continue on and we see authors from Poland, Jakarta, all over the United States, and yes again even from Germany, this time a plugin by a solo author, not a team. http://wordpress.org/extend/plugins/preserve-editor-scroll-position/ a plugin by http://profiles.wordpress.org/ocean90/ with a mere 886 downloads, even after the article here! So small plugins by individual German authors are shown here, when there were probably similar plugins by Americans with a lot more downloads.

      Do a little research before you accuse people and make them defend something they didn’t do.

      Reply
      • Jürgen says:
        Oct 15, 2012 at 9:41 am

        Surprise Surprise!

        A very little research…. so true…
        Well, i’m sorry about that i’m saying – hope you have read my previous comment… but you start me to tell you more :)

        So I grabbed a coffee too…
        “Do a little research before you accuse people and make them defend something they didn’t do.” exactly my thoughts…

        You found this?
        https://www.wpbeginner.com/plugins/how-to-scan-your-wordpress-site-for-potentially-malicious-code/

        Surprise surprise… missing “AntiVirus” http://wordpress.org/extend/plugins/antivirus/ Just a little research… Thats why I got this feeling… couse a successful/good plugins won’t be recommend… and I start thinking why…

        Now I know its just a research problem… “surprise surprise” I know I was wrong, so keep cool.

        Reply
        • Mark says:
          Oct 15, 2012 at 10:50 am

          Did I search for every plugin by every German design in over 20,000 plugins at WordPress? No. Why would I? I wasn’t looking for that. I was looking for evidence that Syed will not promote plugins by Germans – and I found that to be false.

          Syed doesn’t need to list every plugin by every developer. That’s already done by WordPress.org.

          Do you have a website? Have you promoted every theme and plugin by every American? No? Does that mean you hate Americans? Of course not.

          This is a place to discuss the posts, not petty squabbles, so let’s please drop this and leave the discussion area for proper discussion. Thanks.

        • Jürgen says:
          Oct 15, 2012 at 11:03 am

          Thats why I said “Sorry – I was wrong with that” :) and I’am happy that I was wrong ;)

        • Editorial Staff says:
          Oct 15, 2012 at 11:25 am

          Ok this got sort of heated. Thanks guys, I will make sure to do more thorough research. The issue is that I haven’t used all the plugins. The only time we write about plugins is when:

          1. a plugin author notifies us about it.
          2. a user needs something, and we do the research. Try the plugin and write about it.
          3. we find it on our twitter stream and find it interesting.
          4. we need it for our client’s project

          In all four cases, we use the plugin first. There are tons of plugins, and we haven’t used all of them. So yes, there always will be plugins that we might miss.

          -Syed

  5. Birgit says:
    Oct 12, 2012 at 2:30 pm

    I use this one: http://wordpress.org/extend/plugins/addquicktag/
    Very good for quick adding code snippets and – like you’ve mentioned above – buttons

    Reply
    • AndyiBM says:
      Oct 16, 2012 at 3:17 pm

      Hi Birgit (and Jürgen too),

      I hadn’t heard of AddQuickTags either, so I’ve now tested it… I was very excited by it, but then noticed it doesn’t seem to have any support for custom post types… Is there a work-round here, or do you know of another plugin that works just as well but covers the post types too, which I use frequently?

      Cheers,

      Andy

      Reply
      • AndyiBM says:
        Oct 17, 2012 at 5:31 am

        To answer my own question… I searched through the plugin notes, and found this: https://gist.github.com/1595155 which I put into the functions.php and now I’m sorted for post types too.

        For me, the other great benefit of the AddQuickTags plugin is that the buttons appears in BOTH Text Editor mode and HTML mode.

        Reply
        • Birgit says:
          Oct 17, 2012 at 5:41 am

          wow, that’s great, ANDYIBM, have you copied the complete code to your theme’s function.php? It causes error to me – or had you use this complete code as a new plugin?

        • AndyiBM says:
          Oct 17, 2012 at 5:54 am

          Hi Birgit – I copied the two ‘if’ statements in but swapped out the ‘my_custom_post_type’ for my post type (only one for now, but presumably you can list them here if you have more). But these post types must already exist – I declare all my post types by hand in the functions.php (easier to port between websites) – perhaps that’s where your error come from?

Leave a Reply Cancel reply

Thanks for choosing to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and your email address will NOT be published. Please Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

Over 1,320,000+ Readers

Get fresh content from WPBeginner

Featured WordPress Plugin
SeedProd Logo
SeedProd
Create beautiful custom landing pages - Drag & drop builder. Learn More »
How to Start a Blog How to Start a Blog
I need help with ...
Starting a
Blog
WordPress
Performance
WordPress
Security
WordPress
SEO
WordPress
Errors
Building an
Online Store
Useful WordPress Guides
    • 7 Best WordPress Backup Plugins Compared (Pros and Cons)
    • How to Fix the Error Establishing a Database Connection in WordPress
    • Why You Need a CDN for your WordPress Blog? [Infographic]
    • 30 Legit Ways to Make Money Online Blogging with WordPress
    • Self Hosted WordPress.org vs. Free WordPress.com [Infograph]
    • Free Recording: WordPress Workshop for Beginners
    • 24 Must Have WordPress Plugins for Business Websites
    • How to Properly Move Your Blog from WordPress.com to WordPress.org
    • 5 Best Contact Form Plugins for WordPress Compared
    • Which is the Best WordPress Popup Plugin? (Comparison)
    • Best WooCommerce Hosting in 2020 (Comparison)
    • How to Fix the Internal Server Error in WordPress
    • How to Install WordPress - Complete WordPress Installation Tutorial
    • Why You Should Start Building an Email List Right Away
    • How to Properly Move WordPress to a New Domain Without Losing SEO
    • How to Choose the Best WordPress Hosting for Your Website
    • How to Choose the Best Blogging Platform (Comparison)
    • WordPress Tutorials - 200+ Step by Step WordPress Tutorials
    • 5 Best WordPress Ecommerce Plugins Compared
    • 5 Best WordPress Membership Plugins (Compared)
    • 7 Best Email Marketing Services for Small Business (2020)
    • How to Choose the Best Domain Registrar (Compared)
    • The Truth About Shared WordPress Web Hosting
    • When Do You Really Need Managed WordPress Hosting?
    • 5 Best Drag and Drop WordPress Page Builders Compared
    • How to Switch from Blogger to WordPress without Losing Google Rankings
    • How to Properly Switch From Wix to WordPress (Step by Step)
    • How to Properly Move from Weebly to WordPress (Step by Step)
    • Do You Really Need a VPS? Best WordPress VPS Hosting Compared
    • How to Properly Move from Squarespace to WordPress
    • How to Register a Domain Name (+ tip to get it for FREE)
    • HostGator Review - An Honest Look at Speed & Uptime (2020)
    • SiteGround Reviews from 4196 Users & Our Experts (2020)
    • Bluehost Review from Real Users + Performance Stats (2020)
    • How Much Does It Really Cost to Build a WordPress Website?
    • How to Create an Email Newsletter the RIGHT WAY (Step by Step)
    • Free Business Name Generator (A.I Powered)
    • How to Create a Free Business Email Address in 5 Minutes (Step by Step)
    • How to Install Google Analytics in WordPress for Beginners
    • How to Move WordPress to a New Host or Server With No Downtime
    • Why is WordPress Free? What are the Costs? What is the Catch?
    • How to Make a Website in 2020 – Step by Step Guide
Deals & Coupons (view all)
JustHost
JustHost Coupon
Get hosting for $3.95 / month and a free domain registration for life. Can't get any better.
GreenGeeks
GreenGeeks Coupon
Get 70% off GreenGeeks' eco-friendly WordPress Hosting plus a FREE domain.
Featured In
About WPBeginner®

WPBeginner is a free WordPress resource site for Beginners. WPBeginner was founded in July 2009 by Syed Balkhi. The main goal of this site is to provide quality tips, tricks, hacks, and other WordPress resources that allows WordPress beginners to improve their site(s).
Join our team: We are Hiring!

Site Links
  • About Us
  • Contact Us
  • FTC Disclosure
  • Privacy Policy
  • Terms of Service
  • Free Blog Setup
  • Free Business Tools
Our Sites
  • OptinMonster
  • MonsterInsights
  • WPForms
  • SeedProd
  • Nameboy
  • RafflePress
  • Smash Balloon

Copyright © 2009 - 2021 WPBeginner LLC. All Rights Reserved. WPBeginner® is a registered trademark.

Managed by Awesome Motive | WordPress hosting by SiteGround | WordPress CDN by MaxCDN | WordPress Security by Sucuri.