Hi there
I am sking about how can permanently use the topic id for slug ?
Becasue I see some post saying will add this https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-use-post-ids-in-url-instead-of-title-slug/paged/2/
AFAIK, we can't using topic id as permanent slug, only for short link.
I'm sorry, but there is no way to use ID based URLs in forum. It's only available as a quick link. We're not planning to add it in the near future.
I can do this from database why you do not give to us this options ? Every time I do this manually to change for every new topics on phpmyadmin.
We're not planning to add it in the near future.
You should give us the freedom to use whatever we want because it is really annoying when the name is long and inconsistent with other languages while in English there is no problem
You can set the topic ID as the topic slug using hook code.
Put this code in a PHP snippet using Code Snippets plugin or in the functions.php file of your current active WordPress theme:
add_filter('wpforo_add_topic_data_filter', function( $args ){
if( wpfval($args, 'slug') ){
$topicid = WPF()->db->get_var("SELECT MAX(`topicid`) as topicid FROM `" . esc_sql( WPF()->tables->topics ) . "`");
if( $topicid ){
$args['slug'] = (string) ( intval($topicid) + 1 );
}
}
return $args;
}, 10);