Hello 🙂
I used the filter, to be able to change the post order (display recent post first) but on the widget the url to the message is not working. If I disable the filter, the link is working but I really want to display the recent post in first.
Im using widget WpForo Recent Post.
add_filter('wpforo_post_list_args', function ($args){ if(!empty($args)){ $args['orderby'] = '`is_first_post` DESC, `created` DESC, `postid` DESC'; } return $args; });
Please let me know where have you found this code. What forum layout do you use?
but on the widget the url to the message is not working.
Where we can see the issue?
You have JS crashes:
Â
I check the javascript errors and is not causing the bug cause URL are from PHP not from JS.
JS error stops the wpForo core JS redirection. Please note, that wpForo checks the #post-100 ID and redirects to correct page even if the /3/ page is not correct. So you'll not have any problem if you fix all your JS errors. The URLs in sidebar will work by redirection.
Ok sweet ! Thank you, I will try to fix it 😉