WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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 '14 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.

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' ) ); ?>

<?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. – user1460692 Aug 3 '12 at 11:03
thank u so much bro :) – sabz23 Aug 3 '12 at 11:16
you are welcome – user1460692 Aug 3 '12 at 11:20

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