Gravuj Miklos Henrich (@henrichro)

Forum Replies Created

Viewing 1 replies (of 1 total)
  • In reply to: bbPress users URL

    0 down vote favorite

    I have the following bbPress rewrite rules:

    users/([^/]+)/edit/?$ index.php?bbp_user=$matches[1]&edit=1
    users/([^/]+)/?$ index.php?bbp_user=$matches[1]
    view/([^/]+)/page/?([0-9]{1,})/?$ index.php?bbp_view=$matches[1]&paged=$matches[2]
    view/([^/]+)/feed/?$ index.php?bbp_view=$matches[1]&feed=$matches[2]
    view/([^/]+)/?$ index.php?bbp_view=$matches[1]
    search/page/?([0-9]{1,})/?$ index.php?paged=$matches[1]

    $matches[1] = user_nicename

    Instead of user_nicename I would like to have display_name.

    I was playing in bbpress/includes/users/template-tags.php and managed to rewrite all user profile rules like I want, but when I access any of the user profile pages, the link (href) will disappear.

    I would like to know if there is a way to rewrite the above rules from functions.php file?

Viewing 1 replies (of 1 total)