SPECIAL_SPEAKER_CAT_ID,'posts_per_page'=>4)); } foreach($a as$v){ $conf = ''; if(IS_GOOGLE_EXCEL_DATA){ $speaker_id = $v->id; $title = $v->talk_title; $anchor= $v->anchor; $conf = $v->conf; $name = $v->name; $company = $v->company; $position = $v->position; $website = $email = ''; if(strpos($v->website, '@')!==false){ // should we public the email? $email = str_replace(array('http://','https://'), '', $v->website); }else{ /* $tmp = @post_request($v->website, array()); if($tmp and isset($tmp['status']) and strtolower($tmp['status'])==='ok'){ $website = $v->website; } */ $website = $v->website; } $img = ''.$name.''; $desc = pangu($v->me_desc_refined ? $v->me_desc_refined : $v->me_desc); }else{ $speaker_id = $v->ID; $title = get_post_meta($v->ID,'talk_title', true); $name = $v->post_title; $position = get_post_meta($v->ID,'position', true); $website = get_post_meta($v->ID,'website', true); $img = get_post_meta($v->ID,'photo', true);#'/images/organizer/01 iis.png'; $img = wp_get_attachment_image($img, 'medium'); $desc = strip_tags($v->post_content); } ?>
class="col-md-12 kn-speak" data-n= data-anchor=""> name=>
'; echo$img; echo ' 演講摘要'; if($website){ echo' 個人網頁';}?>

/ /