bbPress Permalinks with ID

ID instead of slug in bbPress topic and forum links.

Attention!

You need manually flush rewrite rules after activating bbPress and this plugin. You can do it by visiting /wp-admin/options-permalink.php page. Or use wp cli (wp rewrite flush command).

By default bbPress URLs contains slugs. It’s not good if your slugs (titles) contains something that not present in english alphabet. Sometimes links doesn’t open or you can’t send the link to your friend because URL contains this mystery symbols like cyrillic or chinese letters. Search engines also not love this types of URLs.

The bad URL examples:

  • korobochkin.com/forums/forum/привет-заголовок
  • korobochkin.com/forums/topic/название-топика-с-кириллицей

This plugin automatically adds custom rewrite rules to WordPress and your links rocks.

The good URL examples (after plugin activation):

  • korobochkin.com/forums/forum/123/
  • korobochkin.com/forums/topic/456/

The plugin works with any configuration of permalinks.

  • korobochkin.com/forums/forum/123/
  • korobochkin.com/?post_type=forum&p=123

The plugin featured and starred on Github by Stephen Edgar — bbPress core developer. Discussion about this plugin at bbPress official support forum.

Plugin on Github

Photo on banner created by Jay Mantri.

  1. Install bbPress Permalinks with ID either via the WordPress.org plugin directory, or by uploading the files to your server.
  2. Activate bbPress and after it activate bbPress Permalinks with ID.
  3. Flush rewrite rules. You can do it by visiting /wp-admin/options-permalink.php page. Or use wp cli (wp rewrite flush command).

P. S. I’m currently working on automatically flushing rules on activation and deactivation.

That this plugin do?

Simply adds few rewrite rules. If you deactivate or remove plugin and after that flush rewrite rules there is no stuff (garbage) after this plugin in database.

1.0.5

Update plugin text domain.

1.0.4

First version of plugin for wordpress.org. Without automatically flushing rewrite rules.

  1. Forum URL. The plugin adopts to your permalinks settings (you can change it on default bbPress settings page).

    Forum URL. The plugin adopts to your permalinks settings (you can change it on default bbPress settings page).

  2. Topic edit URL. With this plugin all pages and links correctly opens.

    Topic edit URL. With this plugin all pages and links correctly opens.