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/forumshttp://eternityofgamers.com/archives/74