WordPressのテーマのコードを読んでいたらよくわからない記述にぶち当たったので。
wp-content/themes/twentyeleven/content.php
#19
<h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
記事のタイトルを表示している箇所なんですが、そのタイトルを表示するのに二通りの関数を使っています。
the_title()
the_title_attribute()
なんぞ?? と思って調べてみたわけです。