Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: No blogs shown in Admin Bar’s My Blogs unless Re-Activating BuddyPress.


chestnut_jp
Member

@chestnut_jp

OK,
I made a custom “Dashboard” button in admin bar until the best solution is found.
For people who want to add the custom dashboard, seeing the same trouble:

1) make bp-custom.php in /wp-content/plugins/
2) write the folowing in bp-custom.php:

function custom_adminbar_dashboard_button() {
	if (is_user_logged_in()) {
		echo '<li><a href="/wp-admin/">' . __('Dashboard', 'buddypress') . '</a>';
		echo '<ul>';
		echo '<li><a href="/wp-admin/">' . __('Dashboard', 'buddypress') . '</a></li>';
		echo '<li><a href="/wp-admin/post-new.php">' . __('New Post', 'buddypress') . '</a></li>';
		echo '<li><a href="/wp-admin/edit.php">' . __('Manage Posts', 'buddypress') . '</a></li>';
		echo '<li><a href="/wp-admin/edit-comments.php">' . __('Manage Comments', 'buddypress') . '</a></li>';
		echo '</ul>';
		echo '</li>';
	}
}
add_action('bp_adminbar_menus', 'custom_adminbar_dashboard_button', 1);

Nevertheless, “Blog Directory” does not show the site blog, so I have to re-activate the buddypress plugin anyway.

Skip to toolbar