PHP 解析错误:语法错误、意外'endif' (T_ENDIF)



我想我快要失明了…

我真的没有在我的代码中发现语法错误

<?php if (!is_page(array('865'))); ?>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php endif; ?>

我错在哪里?!

必须用冒号而不是分号…

<?php if (!is_page(array('865'))): ?>
    <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a></h1>
<?php endif; ?>

最新更新