-
Author
-
January 12, 2017 at 21:28 #149638gfischParticipant
Featured photo in profile header
———————————————
I have put settings to show rtMedia photos in the profile header area. It works.I now found a tutorial at rtmedia how to set featured photos instead of the new photos in the profile header area.
https://rtmedia.io/docs/developers/featured-media/
That’s an interesting option.But I cannot get it to work. I have
put a copy of member-header.php in sweetdate.child : members : single folder.
Is this correct, to begin with?But even then, I cannot find the mentioned code segment to change
COPY CODE<?php if ( bp_is_active( 'activity' ) ) : ?>
Is there another way to do it?
Specific fields in profile header
———————————————While reading the code in member-header.php I found
* If you’d like to show specific profile fields here use:
* bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
*/
do_action( ‘bp_profile_header_meta’ );This is an interesting option as well and I would like to try that too, to see what works better for me.
But I don´t know where to put, lets say in my case, those 5 fieldsbp_member_profile_data( ‘field=COUNTRY );
bp_member_profile_data( ‘field=CITY’ );
bp_member_profile_data( ‘field=AGE / BIRTHDAY’ );
bp_member_profile_data( ‘field=I AM A’ );
bp_member_profile_data( ‘field=LOOKING FOR’ );Before this line?
do_action( ‘bp_profile_header_meta’ );Do I have to select something in these settings for the custom fields to show?
Sweetdate : BP Profile TabsThanks
GeorgeJanuary 16, 2017 at 02:59 #149840LauraModeratorHello, will assign the ticket to a higher support level who can help and advise you in your query.
Thanks! ?Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionLaura Solanes - Graphic Designer and Web Designer
Please be patient as I try to answer each topic as fast as i can.
If you like the theme or the support you've received please consider leaving us a review on Themeforest!
Always happy to help you 🙂
January 17, 2017 at 17:28 #149996RaduModeratorHi,
YEs the path it’s correct ( wp-content/themes/sweetdate-child/members/single ).
This part of code isn’t part of our theme
COPY CODE<span class="pl-s1"> <span class="pl-k"><</span>?<span class="pl-c1">php</span> <span class="pl-k">if</span> ( bp_is_active( <span class="pl-s"><span class="pl-pds">'</span>activity<span class="pl-pds">'</span></span> ) ) : </span><span class="pl-pse"><span class="pl-s1">?</span>></span>
The guidance from rtmedia site it applies only for wp default theme, where you want to run that code ?
Anyways the sweetdate theme already has a photos tab
You can use those codes “” in same file member-header.php
But make sure to have exact name fields like you have added in wp-admin -> users -> profile fields.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solutionJanuary 18, 2017 at 02:37 #150047gfischParticipantThanks Radu, understood. I can show both. “About” me and “My Photos” in the member header. Great. I was not aware of that.
But somehow it seems I do something wrong with the code.
I put this in member-header.php (in the child folder) but it still displays ALL fields. Is it because all my fields are (deliberately) in the primary group?
Can I not only select SOME fields from the primary group?
Here is the code I am using (the names are correct).
<?php
/***
* If you’d like to show specific profile fields here use:
* bp_member_profile_data( ‘field=About Me’ ); — Pass the name of the field
*/
bp_member_profile_data( ‘field=AGE / BIRTHDAY’ );
bp_member_profile_data( ‘field=COUNTRY’ );
bp_member_profile_data( ‘field=CITY’ );
bp_member_profile_data( ‘field=I AM A’ );
bp_member_profile_data( ‘field=LOOKING FOR’ );
bp_member_profile_data( ‘field=HEIGHT’ );
bp_member_profile_data( ‘field=WEIGHT’ );
bp_member_profile_data( ‘field=POSITION’ );
do_action( ‘bp_profile_header_meta’ );
?>January 18, 2017 at 17:19 #150124RaduModeratorHi,
By default, the fields from Base (primary group) are displayed on about me section from the profile
If you want to display a certain one use from example : member-header.php file under user nicename or wehere you need, it works i’ve tested on my local install.
Cheers
R.Hi there!!! Help others from the community and mark any reply as solution if it solved your question. Mark as a solution -
AuthorPosts
You must be logged in to reply to this topic.