The same problem. The numbers are twice higher then in Yandex.Metrika or Google
The same question!
The code below is working, but it shows not the most used tags. I’ve just checked it. It doesn’t show the real most used tags.
<ul id="footer-tags"> <?php global $wpdb; $term_ids = $wpdb->get_col(" SELECT DISTINCT term_taxonomy_id FROM $wpdb->term_relationships INNER JOIN $wpdb->posts ON $wpdb->posts.ID = object_id WHERE DATE_SUB(CURDATE(), INTERVAL 90 DAY) <= $wpdb->posts.post_date"); if($term_ids > 0){ $tags = get_tags(array( 'orderby' => 'count', 'order' => 'DESC', 'number' => 5, 'include' => $term_ids, )); foreach ( (array) $tags as $tag ) { echo '<li><a href="' . get_tag_link ($tag->term_id) . '" rel="tag">' . $tag->name . '</a></li>'; } } ?> </ul>
Thread Starter
the2nd
(@the2nd)
Thank you! Can’t wait for the new update! 🙂
Plugin is very good!