Generate QR Code for your Post URL

Just in case if you like QR Code and want others to share your post’s URL using simple QR code, there are good news for your. I recently came across goQR which will allow you to do just that using their API.

You can visit their API Documentation page for more details but here is the summary.

<img src="<?php the_permalink(); ?>">

All you need to do is to simply copy and paste the line mentioned above on your single.php page and update it. You are all set.

Now, if you want to get bit more creative with your QR Code representation on your site, I would highly recommend you to visit their API Documentation page and find more parameters. Simply play around with them and you should be able to get your QR Code for your posts.

Today In History



Leave a Reply

Note: Convet HTML, PHP, JavaScripts from HTMLify, before posting from comment section.
License: By submitting a comment here you grant this site a perpetual license to reproduce your words and name/Web site in attribution. Please use your real name or a pseudonym (i.e., pen name, alias, nom de plume) when commenting. If you add your site name, company name, or something completely random, I'll likely change it to whatever I want.