我得到解析錯誤:語法錯誤,意外「{」解析錯誤:語法錯誤,意想不到的「{」如果在()
這裏是我的代碼(在WordPress的評論循環使用)
<?php
if (current_user_can('edit_comment',$comment->comment_ID)) { ?>
<a href="<?php echo get_edit_comment_link(); ?>" title="Edit Comment">
<img src="<?php echo get_template_directory_uri();?>/images/edit-link.png"/>
</a>
<?php } ?>
爲什麼在代碼中有兩個反引號/反引號?你在這裏發佈時添加了那些嗎? –
對不起。我的錯。改爲 – user1627401
是不是wordpress? – dynamic