# Autor-URL in WP zu Discourse-Profil ändern

**URL:** <https://meta.discourse.org/t/change-author-url-in-wp-to-discourse-profile/114687>\
**Category:** WordPress\
**Created:** [10. April 2019 um 18:39 UTC](https://meta.discourse.org/t/change-author-url-in-wp-to-discourse-profile/114687 "2019-04-10T18:39:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![davidkingham](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidkingham/32/119528_2.png) [@davidkingham](https://meta.discourse.org/u/davidkingham)\
**Post date:** [11. April 2019 um 00:27 UTC](https://meta.discourse.org/t/change-author-url-in-wp-to-discourse-profile/114687/3 "2019-04-11T00:27:01Z")

</div>

Thanks Simon, any idea why this would not be working?

```plaintext
add_filter( 'author_link', 'change_author_link', 10, 1 );

$user_id=the_author_meta('ID');

function change_author_link($link) {
   $username = get_user_meta( $user_id, 'discourse_username', true );
   $link = 'https://community.naturephotographers.network/u/' .$username;
   return $link;
 }

```

---

_[View the full topic](https://meta.discourse.org/t/change-author-url-in-wp-to-discourse-profile/114687)._
