Last active
December 19, 2015 13:39
-
-
Save dougedgington/5963316 to your computer and use it in GitHub Desktop.
Shortcode to display WordPress bookmark links (Blog Roll)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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