1

Is it possible to remove ‘group’ from the buddypress groups slug?

for example:

example.com/groups/third-party-components-plugins/forum/

to be

example.com/third-party-components-plugins/forum/
0

Pretty sure that is not possible.

  1. The groups component uses a page to serve as the directory & slug provider for groups. A page cannot have an empty slug.

  2. You can filter bp_get_groups_root_slug but returning an empty value just breaks all group URLs and doesn't affect the component page, which still uses whatever slug you've defined for that page. So the directory page works, but all group pages are 404s if you override the page's slug to be empty (or any other value unless you handle that explicitly somewhere).

You may be able to get close to what you want with web server rewrites or other related configuration. You'd probably have to handle that nonstandard behavior with additional code in various buddypress filters, depending on whether you care if the server or application can redirect or should natively understand the rewritten URLs.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.