This website uses cookies to remember you and improve your experience. For more info see our Privacy Policy.

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Local SEO
  • MyBookTable
    • MyBookTable Support
  • Contact
  • Hire Us

Mobile Menu

  • Menu
  • Skip to right header navigation
  • Skip to main content

Stormhill Media

Custom websites for every type of business

Header Right

  • About
  • Websites
    • Business Websites
    • Author Websites
  • SEO
  • Portfolio
    • Author Web Design
    • Business Web Design
    • Custom Graphics
    • Logos
  • Services & Pricing
    • Author Website Packages
    • Website Hosting
    • Page Speed Optimization
    • SEO
    • Local SEO
  • MyBookTable
    • MyBookTable Support
  • Contact
  • Hire Us

Links List (bookmarks) Advanced

Home » Code Snippets » Links List (bookmarks) Advanced

Need to List a bunch of links, aka bookmarks, aka blogroll … This code comes in handy

<?php $args = array(
    'orderby'        => 'name',
    'order'          => 'ASC',
    'limit'          => -1,
    'category'       => ,
    'category_name'  => ,
    'hide_invisible' => 1,
    'show_updated'   => 0,
    'include'        => ,
    'exclude'        => ,
    'search'         =>  ); ?>  

<?php
$bookmarks = get_bookmarks( $args );

// Loop through each bookmark and print formatted output
foreach ( $bookmarks as $bm ) {
    printf( '<a class="relatedlink" href="%s">%s</a><br />', 
$bm->link_url, __($bm->link_name) );
}
?>
« Previous
Next »

Site Footer

Quick Links:

  • Contact Us
  • Pricing & Services
  • Sitemap
  • Terms/Conditions
  • Privacy Policy
  • Business Websites
  • Author Websites
  • SEO Services
(903) 213-5266‬

Copyright © 2026 · Stormhill Media All Rights Reserved.
Website by Stormhill Media
Log in