CLAYWORK

ID); $order = get_field(“order”, $post->ID); $number = get_field(“number”, $post->ID); $image_path = get_field(“image_1”, $post->ID); $image_path = substr($image_path, 0, strrpos($image_path, “/”) + 1); if($random == “ランダム表示”){ $order_arr = range(1, $number); shuffle($order_arr); } else{ $order_arr = explode(“-“, $order); } echo ‘‘; for($i = 1;$i <= $number; ++$i){ if($i % 3 == 1){ echo '‘; } $image = $image_path .$order_arr[$i – 1] .”.jpg”; $thum = $image_path .”s” .$order_arr[$i – 1] .”.jpg”; $title = “title_” .$order_arr[$i – 1]; $title = get_field($title, $post->ID); $title = str_replace(‘
‘, ‘<br>’, $title); echo ‘‘; if($i%3 == 0){ echo ‘‘; } } echo ‘
‘; ?>