直接、カスタムフィールドの値が取れるようになった
従来の
<?php $meta_values= get_post_meta($post_id, $key, $single); ?>
の第三引数がtrueにしたのと同様で、同名フィールドの2個目以降は取れない
サンプル
<?php
$_post= get_post( 8111 );
echo $_post->post_title;
echo $_post->{'日本語-1'};
echo $_post->__get('日本語-1');
?>
test1、日本語-1 がカスタムフィールド名
フィールド名にハイフンが含まれる時の処理