data as $cats){ // print_r($cat); if($cats->no == $cat_no){ $cat = $cats; break; } } // print_r($cat); // $items = json_decode( get_option('soph_gallery_type3_gallery'.$cat->no) ); $sql ="SELECT * FROM {$wpdb->prefix}soph_gallery_type3 WHERE ga_no = $no AND ga_status >= 0 "; $item_data = $wpdb->get_row($sql); //print_r($items); $sql ="SELECT * FROM {$wpdb->prefix}soph_gallery_type3 WHERE ga_cat = $cat_no AND ga_status >= 0 ORDER BY ga_date DESC LIMIT 4 "; $items = $wpdb->get_results($sql); ?> ギャラリーカテゴリー詳細 | ネイルサロン Miki

オリジナルネイルギャラリー