Categories
wordpress

Wp_query

タイトルのみを検索

$condition = array(
'post_type' => 'artist_page',
'title' => $word, 
'post_status' => 'publish',
'posts_per_page' => 1,
);

$my_query = new WP_Query($condition);
Categories
テストカテゴリ1

wpml

switch inside template

if( ICL_LANGUAGE_CODE == 'en' ) 
{ $address=ot_get_option('address_en');
$tel=ot_get_option('tel_en');
$fax=ot_get_option('fax_en');
$title_footer=ot_get_option('title_footer_en');
}
else { 
	$address=ot_get_option('address');
$tel=ot_get_option('tel');
$fax=ot_get_option('fax');
$title_footer=ot_get_option('title_footer');
}