You do wish one-to-many times to make a count of blogroll links which you are having on your website. Well, if yes, all you have to do is to simply paste the following snippet in your theme’s file and you are done.
1 2 3 4 5 | <?php $numlinks = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links WHERE link_visible = 'Y'"); if (0 < $numlinks) $numlinks = number_format($numlinks); echo $numlinks; ?> |
Snippet Source/Credit: Jeff Starr