公式サイトのサポートが役立ちました。
https://ja.wordpress.org/support/topic/%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E6%8A%95%E7%A8%BF%E3%81%A7%E3%81%AE%E3%82%AB%E3%82%B9%E3%82%BF%E3%83%A0%E3%83%95%E3%82%A3%E3%83%BC%E3%83%AB%E3%83%89%E3%82%92%E3%82%BF%E3%82%A4%E3%83%88%E3%83%AB/
カスタム投稿(Custom Post Type UI)でデフォルトのタイトルを表示しないように設定し、
カスタムフィールド(Advanced Custom Fields)を使い項目を入力して公開した場合、
デフォルトのタイトルが非表示で空欄なので、投稿一覧ページにはタイトルが「自動下書き」になっている
解決コード
function my_auto_title($title_message){global $post;
/* ポストタイプがカスタムかどうかチェック */
if( $post->post_type == 'lessons' ){
$lesson_place = get_post_custom_values('lesson_place');
if( $lesson_place ){
//$title_message = $title_message . ' at ';
//$title_message = $title_message . $lesson_place[0];
$title_message = ' at ' . $lesson_place[0];
}}
return $title_message;
}
add_filter('single_post_title', 'my_auto_title');
add_filter('the_title', 'my_auto_title');