お邪魔します。テーブル内のタイトルは、どのように出力していますか?
もし the_title(); で出力しているのであれば、こういう感じでどうでしょうか?
<?php
function filter_explode_title_by_space( $title=null ) {
if ( empty($title) ) return;
$title = mb_convert_kana( $title, 's' );
if ( preg_match("/^(\S*)\s+?(.*)$/i", $title, $matches) ) {
$title = $matches[1] . '<br />' . $matches[2];
}
return $title;
}
if ( is_home() ) {
add_filter( 'the_title', 'filter_explode_title_by_space' );
}
?>
お使いのテーマの functions.php にコードを貼り付けて動作を確認してみてください。
懸念する点としては、トップページにこの体裁以外で the_title(); を使用している場合にも一律で、最初の空白を <br /> にするようになってしまうことで、その場合は、上記コードの
if ( is_home() ) {
add_filter( 'the_title', 'filter_explode_title_by_space' );
}
の部分については functions.php へ貼り付けず、テーブルのセルを出力している Wordpress ループの while 文を add_filter() と remove_filter() で挟むことで対応します。
<?php
if ( have_posts() ) :
?>
<table summary="">
<tr>
<?php
add_filter( 'the_title', 'filter_explode_title_by_space' );
while ( have_posts() ) :
the_post();
?>
<td>...</td>
<?php
endwhile;
remove_filter( 'the_title', 'filter_explode_title_by_space' );
?>
</tr>
</table>
<?php
endif;
?>