AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

AI Assistant
How to increase tim...
 
Notifications
Clear all

[Closed] How to increase time period of recent posts

1 Posts
1 Users
0 Reactions
3,127 Views
Robert
(@robert)
Support Team Admin
Joined: 2 months ago
Posts: 10733
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#30532]

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.


   
Share: