How to increase tim...
 
Notifications
Clear all

[Closed] How to increase time period of recent posts

1 Posts
1 Users
0 Reactions
1,229 Views
Robert
(@robert)
Support Team Admin
Joined: 9 years ago
Posts: 10591
Topic starter  

In wpForo, you can use the wpforo_recent_posts_limit filter hook to change the time period of displaying recent posts. For example, you can display recent posts made during the last 365 days:

add_filter( 'wpforo_recent_posts_limit', 'wpforo_custom_recent_posts_limit' );
function wpforo_custom_recent_posts_limit( $limit ) {
    return 365;
}

You can change the 365 to any value you want.
You can add this code in functions.php file of your current active WordPress theme or use a plugin which allow you to add custom PHP code snippets like Code Snippets.

After added the code, do not forget to delete wpForo cache in wpForo > Overview admin page, scroll down, find and click the [Delete All Caches] button. This code is only designed for Recent Posts page, it doesn't work for widgets.

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.