我的A值为B=Johns
,而B中保存的另一个值为javascript{storedVars['FirstName '] + storedVars[ 'LastName']}
。
我需要输出,杰克约翰斯。但我得到的输出就像JackJohns。
<div id="cooler-nav" class="navigation">
<?php $prevPost = get_previous_post(true);
if($prevPost) {?>
<div class="nav-box previous">
<?php $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(100,100)
);?>
<?php previous_post_link('%link',"$prevthumbnail <p>%title</p>", TRUE); ?>
</div>
<?php } $nextPost = get_next_post(true);
if($nextPost) { ?>
<div class="nav-box next" style="float:right;">
<?php $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(100,100) );
} ?>
<?php next_post_link('%link',"$nextthumbnail <p>%title</p>", TRUE); ?>
</div>
<?php } ?>
</div><!--#cooler-nav div -->
答案 0 :(得分:0)
您需要插入空间,而不仅仅是将空间放在storedVars
:
javascript{storedVars['FirstName'] + ' ' + storedVars['LastName']}