外贸营销

WordPress文章自动生成二维码
2019.09.06 外贸营销

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

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

国外的:

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

国内的:

<img src="http://qr.liantu.com/api.php?w=200text=<?php the_permalink(); ?>" alt="<?php the_title(); ?>"/>
上一篇下一篇
标签

有问
必答