Reply To: A couple of beginner questions.
It’s not working 
I’m using this code for the links in the adminbar:
function pages(){
?>
<li class="no-arrow"><a href="http://www.authentic-pictures.com/activity/">Activity</a>
<li class="no-arrow"><a href="http://www.authentic-pictures.com/members/">Members</a>
<?php
}
add_action( 'bp_adminbar_menus', 'pages', 15 );
?>
And when I tried to add those like this:
if ( is_user_logged_in() ) {
function pages(){
?>
<li class="no-arrow"><a href="http://www.authentic-pictures.com/activity/">Activity</a>
<li class="no-arrow"><a href="http://www.authentic-pictures.com/members/">Members</a>
<?php
}
add_action( 'bp_adminbar_menus', 'pages', 15 );
}
?>
It didn’t work..
I also tried like this:
function pages(){
?>
if ( is_user_logged_in() ) {
<li class="no-arrow"><a href="yoursite.com/activity">Activity</a>
<li class="no-arrow"><a href="yoursite.com/groups/">Groups</a>
}
<?php
}
add_action( 'bp_adminbar_menus', 'pages', 15 );
Still didn’t work.. any ideas? 