Date: 11/17/05 (Java Web) Keywords: php, web This blog displays statistics on the right-sidebar (bottom) like - There are currently #### posts and #### comments in this weblog. The data is obviously dynamic. Andre recently asked me how I do it. Here is a simple solution. Embed the following code in your sidebar (or elsewhere) in location of your choice: <?php $numposts = $wpdb->get_var("SELECT COUNT(*) [...] Source: http://blog.taragana.com/index.php/archive/how-to-display-blog-statistics-like-this-blog/
|