WordPress文章自动生成二维码

9年前 (2015-12-17) 已收录 2514℃

调用自动生成二维码网站的API接口,为wordpress文章自动生成二维码

将下面代码添加到主题single模板的适当位置即可。

国外的:

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

国内的:

  1. <img src="http://qr.liantu.com/api.php?w=200text=<?php the_permalink(); ?>" alt="<?php the_title(); ?>"/>

相关推荐

评论已关闭!