Function: add_filter()

63 posts

Recent posts widget : how to display only the posts of the current category ?

If you want to display the recent posts of the current category archive, there is a simple solution. You have to filter the query of the WordPress recent post widget. (one of the built-in widgets). The filter takes one parameter : the query arguments array.   Here is the workflow : […]