-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathreadme.txt
86 lines (51 loc) · 3.19 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
=== bbPress Permalinks with ID ===
Contributors: korobochkin
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=me%40korobochkin%2ecom&item_name=bbPress%20Permalinks%20with%20ID¤cy_code=USD&bn=PP%2dDonationsBF%3abtn_donate_LG%2egif%3aNonHosted
Tags: bbpress, permalinks, links, url, rewrite rule, id, forums, topics, slugs, characters
Requires at least: 4.1.1
Tested up to: 4.5.0
Stable tag: 1.0.5
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
ID instead of slug in bbPress topic and forum links.
== Description ==
**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](https://bbpress.org/forums/topic/topic-id-instead-of-slugs/) at bbPress official support forum.
[Plugin on Github](https://github.com/korobochkin/bbpress-permalinks-with-id)
Photo on banner created by [Jay Mantri](https://stocksnap.io/photo/BD7R33PKME).
== Installation ==
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.
== Screenshots ==
1. 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.
== Frequently Asked Questions ==
= 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.
== Changelog ==
= 2.0.0 =
* Developers can install plugin via Composer from Github.
* Refactored repository structure.
= 1.0.5 =
Update plugin text domain.
= 1.0.4 =
First version of plugin for wordpress.org. Without automatically flushing rewrite rules.
== Upgrade Notice ==
= 1.0.5 =
Update plugin text domain.
= 1.0.4 =
Basic functionality of plugin.