Created
June 10, 2016 10:48
-
-
Save pixelbart/10ffc7fdb413b1c26bcd42fd8c335be9 to your computer and use it in GitHub Desktop.
WordPress Link Manager
This file contains 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 | |
/** | |
* Baut die alte Blogroll wieder ein. | |
* [links] gibt alle Links an beliebiger Stelle aus | |
*/ | |
add_filter('pre_option_link_manager_enabled', '__return_true'); | |
function _links() { | |
ob_start(); | |
wp_list_bookmarks('title_li=&categorize=0&before=<div class="links">&after=</div>'); | |
$ausgabe = ob_get_contents(); | |
ob_end_clean(); | |
return $ausgabe; | |
} | |
add_shortcode( 'links', '_links' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment