Home / bookmarks / Number of blogroll bookmarks
  • How to Number of blogroll bookmarks

    no thumbnail sorry: Number of blogroll bookmarks

    Adding this PHP code to your wordpress theme will display the total number of bookmarks.

    ( click code to copy )

    wordpress snippet : PHP

    <>
    <?php $numlinks = $wpdb->get_var("SELECT COUNT(*) FROM $wpdb->links WHERE link_visible = 'Y'");
    if (0 < $numlinks) $numlinks = number_format($numlinks); ?>
    <?php
              echo $numlinks;
    ?>
    

    ( WordPress codex functions, hooks, in this snippet. )

    wp,