PHPを使用して現在のページのQRコードを表示しようとしています。the_permalink()
フォーラムで空白として返されます。
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