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);