Notifications
Clear all

A topic question

4 Posts
2 Users
0 Reactions
392 Views
Posts: 44
Topic starter
(@hbk747)
Trusted Member
Joined: 10 months ago

Hello,

 

When a topic has more than one page, and someone clicks on it, wpforo automatically takes them to the last page and does not start with page 1. Which option can change this so that the user stays on page 1?

 

Warm regards,

3 Replies
Sofy
Posts: 4900
 Sofy
Admin
(@sofy)
Support Team
Joined: 7 years ago

Hi,

You can use the hook-code below: 

add_filter( 'wpforo_topic_title_structure', function( string $structure ): string{
    return str_replace('{au}', '{at}', $structure);
} );

This instruction should be helpful for you: How to Easily Add Custom Code in WordPress (without Breaking Your Site)

Reply
Posts: 44
Topic starter
(@hbk747)
Trusted Member
Joined: 10 months ago

Hello, 

I tried adding this my child theme's functions.php but the topics became unopenable after. I had previously added code for wpforo as well in functions.php and that worked fine however this is not. 

 

Please help!

Reply
1 Reply
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4900

@hbk747

Firstly, please ensure that the caches are properly cleared. Next, verify that you are using the latest version of the wpForo plugin.

If you have completed the above steps and are still see the issue, please provide us with the steps you have taken and include examples for further support.

Reply