hocalarım ikisi de olmadı. aşağıda bu fonksiyon çağırılıyor. değişkene atamam konusunda başka yöntem varmıdır?
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>

yassey adlı üyeden alıntı: mesajı görüntüle
$wp_query->the_post() fonksiyonun sonucunuda direk ekrana basıyor ise the_post methodunu bulup direk o methotdan return edebilirsin. fakat orası öyle olmak zorunda diyorsan şöyle birşey kullanabilirsin.

function the_post() { global $wp_query; ob_start(); $wp_query->the_post(); $out = ob_get_contents(); ob_end_clean(); return $out; } $the_post = the_post(); echo $the_post;
crooper adlı üyeden alıntı: mesajı görüntüle
function the_post() { global $wp_query; return $wp_query->the_post(); } $degisken = the_post(); //değiskene atadım