我想用PHP来显示当前页面的QR码。 the_permalink()
在我的论坛中返回为空白。WordPress的小工具问题
function the_qrcode($permalink) {
if($permalink == '') {
$permalink = 'http://eternityofgamers.com/forums';
}
echo $permalink;
}
在支持PHP的文本部件,我有<?php the_qrcode(the_permalink()); ?>
在主页上,$permalink
显为http://eternityofgamers.com/archives/74http://eternityofgamers.com/forums
而不是http://eternityofgamers.com/archives/74
。
您错过了QR码位。你需要把QR api放回回应 – 2012-07-17 03:30:36
我故意留下了。出于测试原因。 3: – 2012-07-17 03:45:00