How To Create QR CODE Image After Published New Article WordPress

Answering a question from one of my blog visitors , Asheesh. He asked, how to create a QR code image after doing a published content WordPress. I have tried to make the code in WordPress themes. Hopefully, can solve the problem.

With a WordPress action hook, namely publish_post, after doing publish a new article, WordPress will establish a QR code image and stored it in the folder on the theme.

To make the QR code generator process , you can read through my previous article How to Build QR Code Generator Site With PHP QR CODE library. I don’t understand what the goal he creates these script. But, just started following tutorials

How to create QR code image after do published an article on WordPress blog

  • Make sure you have downloaded the phpqrcode library.
  • Create a folder in your WordPress theme and name “qrcode“. Don’t forget to change the permissions of the folder be 777 or 755. In this example, I am using a Twenty Fifteen theme.
    Create New Folder On Your Theme How To Create QR CODE Image After Published New Article WordPress
  • Copy the ¬†phpqrcode folder to qrcode folder.
    Copy The Phpqrcode Library On Qrcode Folder
  • Add the following code in the function.php in your WordPress theme

Save it and please see the result by adding a new post. If you are successful. then it will get the results as shown below.

Result How To Create QR CODE Image After Published New Article WordPress

Besides to show permalink on QR Code image, you can add additional information such as author, name,email, title with the following codes

So my article about How To Create QR CODE Image After Published New Article WordPress. Hope useful

The following two tabs change content below.
This site is a personal Blog of Sigit Prasetya Nugroho, a Desktop developer and freelance web developer working in PHP, MySQL, WordPress.

Leave a Comment

Your email address will not be published.

Time limit is exhausted. Please reload CAPTCHA.