Không thấy ai mần EV mềnh tự xử tiếp vậy :3
Ping sitemaps và ping posts các kiểu con đà điểu rồi vẫn chưa thấm với nàng Tags vì
Tags = Posts x 5000
Không nói nhiều, triển luôn
1/ Mở file functions.php trong folder themes và chèn code sau
// Random 30 tags
function rand_get_tags_but_exclude() {
$args = array('exclude' => '');
$alltags = get_tags( $args );
shuffle($alltags);
$count=0;
if ($alltags) {
foreach($alltags as $tag) {
$count++;
echo '<a href="'.get_tag_link($tag->term_id).'" title="'.$tag->name.'">'.$tag->name.'</a>, ';
if( $count >29 ) break;
}
}
}
2/ Mở file footer.php trong folder themes và chèn code sau
<?php rand_get_tags_but_exclude(); ?>