We know about barcode which is used to scan products, price etc. but now days new technology comes in smart phones to scan Data Matrix and QR Codes containing URLs, contact info, etc
So as a developer we should know how to generate barcode for website.
To create a Barcode, you need to know about a Syntax required on barcode website. Here is official google page for detail. Google Official Page
Using code bellow to generate barcode for a URLs:
- chs: for define image size
- cht: for define code type
- chl: for define URLs website
To generate barcode for your wordpress blog, use <strong>the_permalink()</strong> in place of website url.
Example: <img src=”https://chart.googleapis.com/chart?chs=500×500&cht=qr&chl=<?php the_permalink();?>” />