Title: str _replace
Last modified: August 24, 2016

---

# str _replace

 *  Resolved [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/str-_replace/)
 * Hi guys,
 * Im trying to put custom link on user profile page
 * This code works only for some users
 *     ```
       <a href="https://clantools.us/servers/na/players?id=<?php echo str_replace('http://worldoftanks.com/community/accounts/','',get_usermeta($post->post_author,'user_url')); ?>" target="_blank" title="<?php printf( esc_attr__("%s's ClanTools Profile", 'bbpress'), bbp_get_displayed_user_field( 'display_name' ) ); ?>"><?php _e( 'ClanTools Profile', 'bbpress' ); ?></a>
       ```
   
 * I have checked several other users, and they have Website in their fields but
   all i got is link to
 * [https://clantools.us/servers/na/players?id=](https://clantools.us/servers/na/players?id=)
 * with no user ID on the end.
 * This code works fine with my profile for example
 * [http://www.cannedbandits.org/forums/users/wg_prosolo/](http://www.cannedbandits.org/forums/users/wg_prosolo/)
 * but it doesn’t work for this one:
 * [http://www.cannedbandits.org/forums/users/wg_wontendwell/](http://www.cannedbandits.org/forums/users/wg_wontendwell/)
 * Can you help me please

Viewing 1 replies (of 1 total)

 *  Thread Starter [akyboy](https://wordpress.org/support/users/akyboy/)
 * (@akyboy)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/str-_replace/#post-6010497)
 * solved

Viewing 1 replies (of 1 total)

The topic ‘str _replace’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [akyboy](https://wordpress.org/support/users/akyboy/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/str-_replace/#post-6010497)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
