10771 readers
PHP
add_filter('wp_nav_menu_items', 'wps_add_bookmarks', 10, 2);
function wps_add_bookmarks($items, $args) {
$cat = '2'; // define category
$name = 'Bookmarks';
$bookmarks = array();
$bookmarks = get_bookmarks("category=$cat");
if ($bookmarks[0] != '') {
$items .= ''.$name.'';
foreach ( $bookmarks as $bookmark ) {
$items .= ''.$bookmark->link_name.'';
}
$items .= '';
}
return $items;
}
Visit wpsnipp.com
6319 readers
( example screenshot )PHP
add_filter('wp_nav_menu_items', 'add_bookmarks', 10, 2);
function add_bookmarks($items, $args) {
$cat = '2'; // define category
$bookmarks = array();
$bookmarks = get_bookmarks("category=$cat");
if ($bookmarks[0] != '') {
$items .= 'Bookmarks';
foreach ( $bookmarks as $bookmark ) {
$items .= ''.$bookmark->link_name.'';
}
$items .= '';
}
return $items;
}
5351 readers
PHP
function no_self_ping( &$links ) {
$home = get_option( 'home' );
foreach ( $links as $l => $link )
if ( 0 === strpos( $link, $home ) )
unset($links[$l]);
}
add_action( 'pre_ping', 'no_self_ping' );
3410 readersGoogle Buzz is launched and many publishers, webmaster and web addicts has already started using that. If you are having a Wordpress site then you can add “Google Buzz Button” thru a simple wordpress plugin to let other people share your posts on their Buzz.
Google Buzz Button WordPress Plugin will add a Google Buzz Bookmark
7460 readers
PHP
function wps_adminbar_bookmarks() {
global $wp_admin_bar;
$cat = '2'; // define category
$name = 'Bookmarks';
$bookmarks = array();
$bookmarks = get_bookmarks("category=$cat");
if ($bookmarks[0] != '') {
$wp_admin_bar->add_menu( array(
'title' => $name,
'href' => false,
'parent' => false
));
foreach ( $bookmarks as $bookmark ) {
$wp_admin_bar->add_menu( array(
'title' => $bookmark->link_name,
'href' => clean_url($bookmark->link_url),
'parent' => strtolower($name),
'meta'
-
3221 readersNew Plugins Hikari Hooks Troubleshooter Hikari Hooks Troubleshooter creates a draggable window with informations about all functions hooked to WordPress actions and filters, and lists all conditional tags. Hikari Unicornified Gravatars Hikari Unicornified Gravatars converts avatars from people that don’t have a Gravatar, into customized unicorns. Tal.ki Embeddable Forums Add a forum, message board, or
-
2393 readersA test voting thingie
Related posts:Adding Facebook Share and Tweet This buttons to your BP Profile pages
6368 readers
PHP
add_filter('the_content', 'google_plusone');
function google_plusone($content) {
$content = $content.'';
return $content;
}
add_action ('wp_enqueue_scripts','google_plusone_script');
function google_plusone_script() {
wp_enqueue_script('google-plusone', 'https://apis.google.com/js/plusone.js', array(), null);
}
Visit wpsnipp.com for details on how to setup this WordPress snippet. Share this post. Facebook | StumbleUpon | Delicious | Tweet It | Digg This | DesignBump-It | DesignPoke-it
-
10611 readersNew plugins
OrangeBox is a lightweight, cross-browser, automated jQuery lightbox script. It can display images, quicktime videos, YouTube and Vimeo videos, Flash SWF files, and inline content (along with links in the inline content to open another ligh...
-
2248 readersNew plugins
PressTags is a network for WordPress bloggers designed to help you discover relevant posts written by other WordPress bloggers.
rootsPersona provides WordPress users with a simple tool for displaying their family trees in WordPress pages/po...