aşağıdaki kodla en çok okunan sayfaları listeliyorum.
bunu EN ÇOK OKUNAN ETİKETLER olarak nasıl değişebilirim ?
<?php if (function_exists('get_most_viewed')): ?>
<?php get_most_viewed('post', 10); ?>
<?php endif; ?> 2
●334
<?php if (function_exists('get_most_viewed')): ?>
<?php get_most_viewed('post', 10); ?>
<?php endif; ?> function Poz84_ThePopularTags() {
$tags = get_tags();
if (empty($tags))
return;
$counts = $tag_links = array();
foreach ( (array) $tags as $tag ) {
$counts[$tag->name] = $tag->count;
$tag_links[$tag->name] = get_tag_link( $tag->term_id );
}
asort($counts);
$counts = array_reverse( $counts, true );
$i = 0;
foreach ( $counts as $tag => $count ) {
$i++;
$tag_link = clean_url($tag_links[$tag]);
$tag = str_replace(' ', ' ', wp_specialchars( $tag ));
if($i < 11){
print "<li><a href=\"$tag_link\">$tag ($count)</a></li>";
}
}
}<h2>Popüler etiketler</h2> <ul> <?php Poz84_ThePopularTags(); ?> </ul>kaynak : http://www.fatihtoprak.com/en-cok-ku...-ipucu-84.html