Forum Replies Created
-
Still no luck. It’s a real head scratcher as I can’t decipher what some of these hooks mean…
I have also tried leaving the first lines in “edit.php” alone and adding to the bp_get_current_profile_group_id() function. I’m not nearly as smart as I thought I was. Ha!
function bp_current_profile_group_id() {
echo bp_get_current_profile_group_id();
}
function bp_get_current_profile_group_id() {if ( !$profile_group_id = bp_action_variable( 1 ) )
$profile_group_id = 1;{
elseif (custom_position (‘Actor’));
echo ‘Actor’;
$profile_group_id = 2;{
elseif ();
}
}return apply_filters( ‘bp_get_current_profile_group_id’, $profile_group_id ); // admin/profile/edit/[group-id]
}Okay, I feel like this one should work, but it’s showing not really making anything happen…
in my bp-custom file (lifted heavily from John James Jacoby’s informative post here: https://buddypress.org/support/topic/calling-specific-profile-fields-individually/#post-55905):
In my edit.php file, I replaced “bp_get_current_profile_group_id()” with the custom_position function
Thanks again!
Putting my IF statement into a function called “position_type”, I thought this could work, but still no dice:
if ( bp_has_profile( ‘profile_group_id=’ . bp_get_current_profile_group_id(position_type) ) ) :
while ( bp_profile_groups() ) : bp_the_profile_group();Thanks again, everyone.
I’m sure I need to change something in this line from the edit.php to get the desired effect:
But I can’t quite figure out what “bp_get_current_profile_group_id” function is *doing* in the xprofile template file. Or what I could do to it to make it behave the way I want it to without ruining its current function…
Any help is greatly appreciated as always.
Okay, Haha!
`
`
Trying the code embed again…