Beginner's Guide for WordPress - Start your WordPress Blog in minutes.
Choosing the Best
WordPress Hosting
How to Easily
Install WordPress
WordPress Plugins
View all Guides

How to Generate and Add QR Codes in WordPress

Last updated on by
Special WordPress Hosting offer for WPBeginner Readers
How to Generate and Add QR Codes in WordPress

Marketers have been debating on whether QR codes are dying or still has value for quite some time. eMarketer stats show that 39% of US citizens between 18-24 have used QR scans in magazines, 38% in mail, 35% on posters, and 21% on websites. Recently one of our users asked us if it was possible for their local business to add a QR code on their site. In this article, we will show you how to generate and add QR Codes in WordPress.

QR Code abbreviated for Quick Response Code is a type of two dimensional matrix barcode. Since the arrival of barcode scanner apps in mobile phones, QR Codes have been utilized by many on websites, virtual stores, and online communities. A QR Code is usually an image with white background and black squares and dots in a square shape container. Businesses can use QR codes to offer exclusive discounts, show special offers and more.

If you want to add QR Codes in WordPress, then the first thing you need to do is to install and activate QR Code Generator plugin. Using the plugin is extremely simple. You can generate QR code inside your posts or pages using the shortcode like this:

[qrcode content="Your content goes here" size="150" alt="QrCode" class="qrcode" credit="FALSE"]

QRCode displayed inside a WordPress sidebar widget

In the above shortcode, the content you want to be encrypted in QR code goes inside the content parameter. For this example, we used image size of 150px, but you can define the size of the QR Code image as you want. Setting the credit parameter false will ensure that plugin author’s website link does not gets included in your QR code.

You can also use this shortcode inside a text widget in your sidebar. If QR Code does not appear in your text widget after using the shortcode, then make sure you have this line added in your theme’s functions.php file.

add_filter('widget_text', 'do_shortcode');

QR Codes can allow mobile phone users to save URLs by scanning the QRCode. These barcode images can be used to convey information in less pixel area. You can use QRCodes to provide contact information, social profile IDs, addresses and many other type of content.

We hope that this article helped you add QR Codes on your WordPress site. What are your thoughts on QR Codes? Do you ever use the as a user? Does it make sense for you to put it on a website? Let us know by leaving a comment below.

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi. Page maintained by Syed Balkhi.

WPBeginner's Video Icon
Our HD-Quality tutorial videos for WordPress Beginners will teach you how to use WordPress to create and manage your own website in about an hour. Get started now »


  1. Tanish Sehgal says:

    I want to make a qr code instantly whenever the user enter his details and when a person scans the qr code all the details typed by the user should be displayed.

  2. Akinola says:

    I want to use the QR code to register people for a event, such that when they book their seats, they get a receipt with a unique QR code which can be printed or saved (as image or pdf) on their mobile devices. Once they get to the event venue, they can have their QR codes scanned and verified.

    Is this possible?

  3. Cesar Sacconi Falcao says:

    I´d like to use QR codes in certificates of my online education site, so people can verify if its authentic.

    But creating the code is just one part of the problem, maybe I´d need some forms to create a unique serial number, create the QR and then create a page where you type the serial or scan the code and then it shows the info of the exam.

    • Nick says:

      Cesar, it may be a while since you posted, but this may be of help to you ?

      We provide validation qr codes to keep documents secure, with each applicable page or document having it’s own unique qr code, mostly devised by the validator. The licence can allow hundreds of these validating codes where you register each one as you print/provide it, and allows you to enter the name, certificate number, your contact details etc for anyone who needs to validate it’s authenticity.

      Let me know if this might be of use to you.



  4. Mike Panic says:


    Until the iPhone (iOS) and Android operating systems come with a built in, default QR code reader, the only people who get really excited about them are marketing directors and misinformed business leaders / owners.

    Who on earth has actually scanned a bar code on a computer screen. Another point, what happens when I’m viewing a site on my phone (a demographic growing at a staggering rate), it’s no impossible to do anything with this fancy QR code until I get another device out and now I’m scanning my iPhone with my iPad.

    Seriously, what happened to UX people and what UI designers are allowing this wretched marketing ploy take over the Internet?


  5. Mark says:

    Hi. In your shortcode example, you have credit=false with no closing quote. should fix that before people that only use the admin panel editor lock themselves out of their sites with a fatal error :)

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our comment policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.