• Resolved Aurore

    (@aurore888)


    Hello,

    First thank you Mr Kaine for sharing your plugin, this is a awesome job.

    I have geolocalized the BuddyPress profiles with Geo My WP but nothing shows up when I go to the Youzify dashboard and select the field called “Country,City”, for exemple in the address widget, or in the profile header settings.

    I was wondering if there is a php way to make these 2 plugins work together and display the city and country in the profile page.

    Thank you very much.

    Kind regards

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Youzify

    (@kainelabsteam)

    Hello @aurore888,

    Thanks for using our plugin, we are so happy that you liked it.

    Actually, the reason, why it’s not working anymore, is that in the past we when a client installs Youzify for the first time we create many profile fields automatically so we already attach the ids of the fields to that option. We stopped doing this lately because we wanna give the clients the freedom to create the fields they want by them selves and we forget to remove that option from the dropdown.

    Yes, of course, this could be done through customization as it will require a bit of effort and research, can you please consider investing in a PRO version, and our support team will offer you this customization for free to make them in Sync with Geo My WP and make that field working fine for you ??

    You are always welcome.

    Best Regards, KaineLabs Team.

    Thread Starter Aurore

    (@aurore888)

    Thank you very much for clarifying the situation.

    Before using your plugin, I was using a BuddyPress hook to display the address in the profile header but it does not work anymore with your template.

    
    function user_profile_header() {
            
        $user_id = bp_displayed_user_id();
    
        echo do_shortcode('[gmw_bp_member_location object_id="'.$user_id.'" elements="address" address_fields="city,country" no_location_message=""]');
    
    }
    add_action( 'bp_profile_header_meta', 'user_profile_header' );
    
    

    So I tried the version of your documentation but it does not work too. I can paste this code in function.php or in bp-custom.php, there is no effect.

    
    function yzc_add_profile_header_custom_meta_fields() {
        
       $user_id = bp_displayed_user_id();
    
        echo do_shortcode('[gmw_bp_member_location object_id="'.$user_id.'" elements="address" address_fields="city,country" no_location_message=""]');
    
    }
    add_action( 'yz_get_profile_header_user_meta', 'yzc_add_profile_header_custom_meta_fields' );
    

    It is usually very easy to display a field with WordPress. What’s wrong here please ?

    Plugin Support Youzify

    (@kainelabsteam)

    Thanks for your reply!

    Please change the line:

    add_action( ‘yz_get_profile_header_user_meta’, ‘yzc_add_profile_header_custom_meta_fields’ );

    with:

    add_action( ‘youzify_get_profile_header_user_meta’, ‘yzc_add_profile_header_custom_meta_fields’ );

    This one should work fine ??

    Keep me updated if this worked fine for you.

    Thread Starter Aurore

    (@aurore888)

    Thank you very much for your solution. The address is displayed in the profile header now.

    I wish you the best.

    Kind regards

    Plugin Support Youzify

    (@kainelabsteam)

    Thanks, @aurore888 we are so happy that we were able to help.

    Please if you don’t mind could you please consider giving us a 5-star and a good review this will encourage other clients to try our products ??

    Thanks in advance ^^

    Thread Starter Aurore

    (@aurore888)

    Thank you again for your help.

    I just let the 5 five review you deserve. Congratulations for the work you do. I hope you will inspire many other developpers.

    I wish you a long prosperity.

    Best regards,
    Aurore

    Plugin Support Youzify

    (@kainelabsteam)

    Thanks a lot for your review and your kind words.

    Have a wonderful day ??

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Address fields compatibility with Geo My WP’ is closed to new replies.