Evet simdi ise kendimin kullanmis oldugu bir fonksiyon bazen filmler calismadigi filmleri (konulari) güncelleyip sidebarda gosterdigim bir kod

Enson Güncellenen 5 konu (film:-)

temanizin functioins.php icerisine asagidakileri ekliyoruz

function wp_lastupdated_posts() { 
// Query Arguments
$lastupdated_args = array(
'orderby' => 'modified',
'ignore_sticky_posts' => '1'
);
//Loop to display 5 recently updated posts
$lastupdated_loop = new WP_Query( $lastupdated_args );
$counter = 1;
echo '<ul>';
while( $lastupdated_loop->have_posts() && $counter < 5 ) : $lastupdated_loop->the_post();
echo '<li><a href="' . get_permalink( $lastupdated_loop->post->ID ) . '"> ' .get_the_title( $lastupdated_loop->post->ID ) . '</a> ( '. get_the_modified_date() .') </li>';
$counter++;
endwhile; 
echo '</ul>';
wp_reset_postdata(); 
} 
//add a shortcode
add_shortcode('lastupdated-posts', 'wp_lastupdated_posts');
Ekliyoruz

istedigimiz yerde en son guncellenen 5 konuyu gosterebilmek icin ise asagidakileri ekliyoruz

<?php if (function_exists(wp_lastupdated_posts)) : wp_lastupdated_posts();endif;?>
veya yeni bir sayfa olusuturup
shortcode eklebilirsiniz

 [lastupdated-posts]