Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 1 replies (of 1 total)

  • arnezami
    Participant

    @arnezami

    Just small clarification:

    I have url’s:
    example.com/members/{user}
    I want them to be more SEO friendly such as:
    example.com/{City}/{Instrument}/{Firstname-Lastname}
    example.com/{City}/{Style}/{Band-Or-Ensemble name}

    I have found the way, how to update url’s structure:
    in functions.php

    add_filter( 'bp_get_member_permalink', 'custom_bp_get_member_permalink' );
    
    function custom_bp_get_member_permalink(){
    	global $members_template;
    
    	$url = get_site_url();
    	$city = xprofile_get_field_data('City', $members_template->member->id);
    	$instrument = xprofile_get_field_data('Instrument', $members_template->member->id);
    	$full_name = $members_template->member->fullname;	
    	return $url.'/members/'.convert_to_url_ready($city).'/'.convert_to_url_ready($instrument).'/'.convert_to_url_ready($full_name);
    }

    but I need to rewrite url’s to get user’s pages.
    Wating for any ideas. Thanks in advance.

Viewing 1 replies (of 1 total)
Skip to toolbar