Replies
HEllo,
i canĀ“t find a file with the name: bp-custom.php
Regrads
UPDATE:
I created the file and then uploaded it to the wp-content / plugins folder
– ` <?php
// hacks and mods will go here
add_filter( ‘xprofile_get_field_data’, function ( $value, $field_id, $user_id ) {if ( 3 != $field_id || is_array( $value ) ) {
return $value;
}return do_shortcode( $value );
}, 10, 3 );
?> `.But the shortcode is not displayed.
The field remains empty- This reply was modified 5 years ago by
Peter.
- This reply was modified 5 years ago by
Basically, it should be such that only the admin can fill this field.
I used e.g. the Football Leagues plugin.
Here there is a short code of clubs or tables.
I would like to display this club or table in the user profile page.
The shortcode looks like this:
[anwpfl-clubs competition_id = "" logo_size = "big" logo_height = "50px" logo_width = "50px" exclude_ids = ""]
Now I have created a field with the name: Club.
Title: Club
Type: Text area
Meta name: user_vereinIf I now enter the shortcode, I will not see the club but only the shortcode.