I am using buddypress and I am using formidable to replace the profile fields. Each member has a personal profile page and I need to have the custom display show on each members profile.
<?php bp_displayed_user_username() ?> this displays the username which is used to identify the profile page that is being shown.
I need this added to the php version of the shortcode so it will display my form properly. This can be done using the user_id=<?php bp_displayed_user_username() ?> in the shortcode.
I am not sure the exact code to make this work because this doesn’t work.
<?php echo do_shortcode(‘[display-frm-data id="2" filter="1" user_id=". $bp_displayed_user_username() ."]‘); ?>
This is another attempt.
Please help me.