hocam dediğin php ile olmadı ama functions la yapacak bi kod buldum. ama sadece başlığı çekebildim linki nasıl çekebilirim

kod şu şekilde

function latest_post() {
$args = array(
'posts_per_page' => 1, // we need only the latest post, so get that post only
'cat' => '4' // Use the category id, can also replace with category_name which uses category slug
);

$str = "";
$posts = get_posts($args);

foreach($posts as $post):
$str = $str."<h2>". apply_filters( 'the_title', $post->post_title) ."</h2>";
endforeach;

return $str;
}


DemirayBilisim adlı üyeden alıntı: mesajı görüntüle
R10 kısmına etiket adı 5 kısmına da kaç konu çekeceksem yaz hocam. Eğer pratik olsun istiyorsan bir function olustur sonr add_shortcode kullan functions dosyana ekle sayfa oluştur oraya shortcode ekle etikete göre gelir. Mobil olduğum için kodu yazamadım.