İki fonksiyon içindekini teke düşürmek istiyorum nasıl yapmak gerekiyor. Fonksiyonlar şu şekilde.

Birinci foksiyonum şu şekilde :


$args = array(
'post_type' => 'attachment',
'numberposts' => '15',
'post_status' => 'any',
'post_parent' => get_the_ID(),
'order' => 'ASC',
);
$attachments = get_posts($args);

?>


ID, 'large'); ?>







İkinci foksiyonum şu şekilde :


$args = array(
'post_type' => 'attachment',
'numberposts' => '15',
'post_status' => 'any',
'post_parent' => get_the_ID(),
'order' => 'ASC',
);
$attachments = get_posts($args);

?>


ID, 'thumb'); ?>