Skip to content

Instantly share code, notes, and snippets.

@dougedgington
Last active December 19, 2015 13:39
Show Gist options
  • Save dougedgington/5963316 to your computer and use it in GitHub Desktop.
Save dougedgington/5963316 to your computer and use it in GitHub Desktop.
Shortcode to display WordPress bookmark links (Blog Roll)
<?php
/*
Author: Doug Edgington
Description: Shortcode to display WordPress bookmark links (Blog Roll).
Used to add links to a page rather than a sidebar using the WordPress links widget.
*/
function dee_display_bookmark_links() {
$args = array(
'category_before' => '',
'category_after' => '' );
return wp_list_bookmarks( $args );
}
add_shortcode( 'my-bookmarks', 'dee_display_bookmark_links' );
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment