The cool guys over at MobiFreaks needed an easier way to generate QR codes, so they began to search around for a new solution.
Originally, they would manually create a QR code for each and every article and add them to the post.
With the help of QR Server, they put together an awesome solution.
Check this out:
Generate QR Codes with QRserver
First, you simply pass the URL or text along with the API URL:
Simply replace the “url-or-text” with just that — URL or text.
This is what the above code renders:
Be sure you keep your dimensions completely square!
Now that you’ve done this, you can easily add this to any website (not just WordPress).
Adding this to the WordPress Loop is easy. We’re simply taking the simply concept established above and hooking into the magic of WordPress. I’m sure the same could be done with other CMS’. You could also play around with the formatting, too.
Here’s the snippet:
[cc lang=”php”]” alt=”QR Code for “/>[/cc]
Again, be sure to adjust the size (keeping it exactly square) to your liking.