ttt-logo 超方科技 tesseract technology tianjin

实现wordpress文章自动生成二维码图片

二维码现在很热门,各种广告、产品都可见支持二维码扫扫描。作为wordpress博主是否有想过给博客每天更新的文章添加一个二维码功能给客户“扫扫”?很简单就能实现哦,仅需要在single.php添加一句代码即可。

操作方法如下:

在后台——外观——编辑——single.php文件中添加以下代码:

1
<img src="http://api.qrserver.com/v1/create-qr-code/?size=100x100&data=<?php the_permalink(); ?>" alt="QR:<?php the_title(); ?>"/>

注:其中的100×100表示二维码图片宽100,高100,可自行更新设置。

生成效果:

文章转自:https://www.boke8.net/wordpress-qr-4-post.html

标签TAGS

与标签相关的文章

最新文章

热门文章

其他文章

Sign up for our Newsletter

iPhone

Lorem ipsum dolor sit amet

MacBook

Sed do eiusmod tempor incididunt

iPad

Tempor incididunt ut labore et dolore