global $wpdb;
$args = array(
'post_type' => 'member',
'p'=> '999',
'post_status' => 'publish',
'posts_per_page' => 1
);
$the_query = new WP_Query( $args );
if ( $the_query->have_posts() ) {
while ( $the_query->have_posts() ) {
$the_query->the_post();
$cname = types_render_field('member-chinese-name');
$ename = strtoupper(types_render_field('member-english-name'));
$bod = date("Y 年 m 月 d 日", get_post_meta(get_the_ID(), 'wpcf-member-bod', true));
$email = types_render_field('member-email', array(output=>'raw'));
}
} else {
}
wp_reset_postdata();
Post Views: 5