I\'am trying to echo a vriable,但permalink不能作为可点击按钮工作。permalink刚刚显示在按钮外。
这是我的代码:
$perma = the_permalink();
$valid = \'<button class="btn btn-success btn-wide" href="\'.$perma.\'">
Gegevens opgeslagen <span class="glyphicon glyphicon-ok"></span>
<a class="pull-right"><span class="label label-default">
<span class="glyphicon glyphicon-ok"></span></span></a></p>
</button>\';
$id = get_the_ID();
if($id == \'2440\'){
if($current_user->google_play_gebruikersnaam != ""){
echo $valid;
}