WordPress count your blogroll links
If you want to display total number of blogroll links you have? Then following code will be used to display the number of blogroll links.
<?php
$numlinks = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links WHERE link_visible = 'Y'");
if (0 < $numlinks) $numlinks = number_format($numlinks);
echo $numlinks;
?>
Credits
Jeff Star
January 4th, 2011
Filed under: Misc
Related Posts
-
It would be wise to treat the Twitter community with the utmost respect because it is worth its weight in gold. Your main focus on Twitter should be directed at ...
-
So today I was reading one of my favourite marketing authors, Mr Perry Marshall. I was having a break from my exam studies at the time and I love tuning ...
-
Article marketing and affiliate advertising are becoming increasingly well-known and now many people are very convinced about the effectiveness of those relatively new marketing methods. The opportunity in affiliate advertising ...