Are you looking for a way to render a QR code with article link? While there’s probably a plugin for this, we have created a quick code snippet that you can use to render a QR code with article link in WordPress.
Instructions:
All you have to do is add this code to your theme’s single.php file:
<img src="http://api.qrserver.com/v1/create-qr-code/?size=500x500&data="<?php the_permalink() ?>" alt="QR Code for <?php the_title_attribute(); ?>"/>
Note: If this is your first time adding code snippets in WordPress, then please refer to our guide on how to properly copy / paste code snippets in WordPress, so you don’t accidentally break your site.
If you liked this code snippet, please consider checking out our other articles on the site like: 21 best WordPress real estate themes and how to set up Shopify with WordPress.
Comments Leave a Reply