Bu soru tema özgü olabilir farkındayım, ama ben bir eklenti varsa emin değilim. Ben eski WordPress mesajlar için tarih (bu yıl daha eski bir şey) gizlemek istiyorum. İşte bu konu ile ilgili çevrimiçi bulundu kod - ama (bu tarih kodunu değiştirmek gerekiyordu) Benim belirli bir tema için işe yarayabilir emin değilim.
01 <?php
02 $today = date('r');
03 $articledate = get_the_time('r');
04 $difference = round((strtotime($today) - strtotime($articledate))/(24*60*60),0);
05 if ($difference >= 30)
06 {
07 ?>
08 <!-- Aged Gem -->
09 <?php
10 } else {?>
11 <!-- Fresh Gem --><strong><?php the_time('F jS, Y') ?></strong>
12 <?php
13 }?>
İşte (Ben StudioPress temalarından birini tükeniyor) benim functions.php içinde ne var.
add_filter('genesis_post_info', 'post_info_filter');
function post_info_filter($post_info) {
$post_info = '[post_date] by [post_author_posts_link] at [post_time] [post_comments] [post_edit]';
return $post_info;
}