解析错误:语法错误,意外'='(无法弄清哪一个)

时间:2011-03-14 18:32:13

标签: php

这是一行:

<a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) );  rel="bookmark"?>" ><?php the_title(); ?></a>

我检查过,我看不出问题。

2 个答案:

答案 0 :(得分:5)

<a href="<?php the_permalink(); ?>" 
    title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyten' ), the_title_attribute( 'echo=0' ) ); ?>"
    rel="bookmark">
<?php the_title(); ?>
</a>

答案 1 :(得分:3)

我认为它在rel="bookmark"?>"附近。