get_results( "SELECT referred FROM {$wpdb->prefix}statistics_visitor WHERE referred <> '' LIMIT {$start}, 10000" ); $start += count( $result ); foreach ( $result as $item ) { $url = parse_url( $item->referred ); if ( empty( $url['host'] ) || stristr( get_bloginfo( 'url' ), $url['host'] ) ) { continue; } $urls[] = $url['host']; } } while ( 10000 == count( $result ) ); $get_urls = array_count_values( $urls ); arsort( $get_urls ); $get_urls = array_slice( $get_urls, 0, $count ); // Put the results in a transient. Expire after 24 hours. set_transient( 'wps_top_referring', $get_urls, 24 * HOUR_IN_SECONDS ); } ?> $value ) { $referrer_html = $WP_Statistics->html_sanitize_referrer( $items ); echo ""; echo ""; echo ""; echo ""; } ?>
" . number_format_i18n( $value ) . "" . $WP_Statistics->get_referrer_link( $items ) . "