Skip to:
Content
Pages
Categories
Search
Top
Bottom

Topic ID instead of slugs?


  • Kolya Korobochkin
    Participant

    @korobochkin

    bbPress permalinks by default is:

    • /forums/topic/TOPIC_SLUG/
    • /forums/forum/FORUM_SLUG/

    How to replace topic- and forum- slugs to their ID’s?

    • /forums/topic/TOPIC_ID/
    • /forums/forum/FORUM_ID/

    I need this because I have cyrillic letters in topic names (and slugs).

    Current link:

    http://ru.forums.wordpress.org/topic/Пустая-страница-1?replies=3

    After copy and send on Twitter, Facebook..:

    http://ru.forums.wordpress.org/topic/

    I try fix it and write rewrite rule (and flush, yep).

    add_rewrite_rule('^/forum/topic/(\d+)/?$','index.php?topic_id=$matches[1]','top');

    But after visiting /forum/topic/814 (814 topic id is exists) redirect to home page happening.

Viewing 7 replies - 26 through 32 (of 32 total)
Viewing 7 replies - 26 through 32 (of 32 total)
  • You must be logged in to reply to this topic.
Skip to toolbar