Hocam tam dediğiniz şekilde yaptım ancak saçma bir şey oldu recent posttaki postlar kendini aşağı doğru klonladı
// Check if post has post thumbnail.
if ( has_post_thumbnail() ) :
$html .= '<div class="mainumber33">' . get_post_meta($post->ID, "yeniyazinumarasi", true) . '</div>';
$yeniyazinumarasi= $html;
echo $yeniyazinumarasi;
$html .= '<a class="rpwe-img" href="' . esc_url( get_permalink() ) . '" rel="bookmark">';
if ( $image ) :
$html .= '<img class="' . esc_attr( $args['thumb_align'] ) . ' rpwe-thumb" src="' . esc_url( $image ) . '" alt="' . esc_attr( get_the_title() ) . '">';
else :
$html .= get_the_post_thumbnail( get_the_ID(),
array( $args['thumb_width'], $args['thumb_height'] ),
array(
'class' => $args['thumb_align'] . ' rpwe-thumb the-post-thumbnail',
'alt' => esc_attr( get_the_title() )
)
);
endif;
$html .= '</a>';
$single = true yerine sadece
true yazıp dener misiniz hocam?
$html .= '<div class="mainumber33">' . get_post_meta($post->ID, "yeniyazinumarasi", true) . '</div>';
$yeniyazinumarasi = $html;
echo $yeniyazinumarasi;