Смотрим какие поля и их значения есть в массиве
// foreach ( $post->connected as $post ) : setup_postdata( $post );
the_post();
foreach ( $post as $key => $val ) {
echo '<p>', esc_html( $key ), ' => ';
if ( ! is_array( $val ) ) {
// не массив
echo esc_html( $val );
}
else {
// массив
echo '<pre>', esc_html( print_r( $val, 1 ) ), '</pre>';
}
echo '</p>';
}
* Plugin Name: Custom field finder
* Plugin URI: http://wordpress.org/extend/plugins/custom-field-finder/
* Description: Allows you to easily find the custom fields (including hidden custom fields) and their values for a post, page or custom post type post.