Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to add some more tabs like photos, videos on the user profiles of my buddypress site.

Is there any shortcodes or functions to add the tabs?

share|improve this question

closed as off-topic by ialocin, kaiser Aug 4 at 14:30

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

up vote 0 down vote accepted

Use the following code,

function custom_add_activity_tab() { ?>

  <li id="custom-tab">
    <a href="<?php echo site_url( BP_ACTIVITY_SLUG . '/' ) ?>" title="<?php _e( 'Tab.', 'buddypress' ) ?>">
        <?php printf( __( 'tab' , 'buddypress' ) ); ?>
    </a>
  </li>

<?php }
add_action( 'bp_activity_type_tabs', 'custom_add_activity_tab' );

Check it, Will work better

share|improve this answer
    
There is no shortcode available, so try to write functions. –  Hitler Aug 3 '12 at 11:03
    
thank u so much bro :) –  sabz23 Aug 3 '12 at 11:16
    
you are welcome –  Hitler Aug 3 '12 at 11:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.