Add QR Codes To Your WordPress Blog

QR codes, or “Quick Response” 2D bar codes created to be scanned in with your mobile device, have been popping up in mainstream locations for a while now. These codes can be attached to anything from a movie poster to a drink can, and using this trick you can now easily addone to your WordPress (or any other) blog.

We’ve gone over how to manually create these codes easily using the Google URL shortner, and now you can use this trick to embed a QR Code in your blog – in the sidebar or wherever you choose.

The trick uses Google’s Chart API to generate this code on the fly. The basic gist of what you do is entering your WordPress theme editor and add the following code where you would like the QR Code to show up:

<img src=”×100&chl=<?php the_permalink(); ?>” width=”100″ height=”100″ />

This tells WordPress to generate that URL which will bring up the image with the QR code for each page in your blog.

For any other blog, or webpage for that matter, you can have it generate the QR code using that same code except within the <?php ?> tags, use the specific function or variable for displaying the current URL. View the video above for detailed instructions for installing it in your WordPress blog, as well instructions for doing it with a plugin with the Super Cool QRCode widget.

Let us know if you have any unique uses for QR Codes on websites or other locations – they can be used to embed a wide variety of information. One such example is using a QR code to encode text notes.

How To Add A QR Code To Your Blog

The Cheapest NBN 50 Plans

Here are the cheapest plans available for Australia’s most popular NBN speed tier.

At Lifehacker, we independently select and write about stuff we love and think you'll like too. We have affiliate and advertising partnerships, which means we may collect a share of sales or other compensation from the links on this page. BTW – prices are accurate and items in stock at the time of posting.


One response to “Add QR Codes To Your WordPress Blog”

Leave a Reply