get_title(); ve bunun türevleri hiç bir komut işe yaramıyor.
Loop içi ve Loop dışı komutları denedim ve başka temalara da baktım ama derdime bir çare bulamadım.
Yardım edebilecek olursa çok makbule geçer.
Kullanacağım yer şu şekilde :
//get thumbnails
function postimages($size=medium) {
if ( $images = get_children(array(
'post_parent' => get_the_ID(),
'post_type' => 'attachment',
'post_mime_type' => 'image')))
{
foreach( $images as $image ) {
$attachmenturl=wp_get_attachment_url($image->ID);
if($size=='featured') {
$attachmentimage=wp_get_attachment_image( $image->ID, array(401, 301) );
} else {
$attachmentimage=wp_get_attachment_image( $image->ID, $size );
}
$imagelink=get_permalink($image->post_parent);
echo '<div class="box"><a href="'.$imagelink.'">'.$attachmentimage.apply_filters('the_title', $parent->post_title).'
<div class="yazi">
################
################ Buraya Thumbnail'in ait olduğu konunu başlığını yazmamı sağlayacak kod gerekli ##########
################
</div>
</a></div>';
}
}
}

