Fetch posts based on specified query when post list page is shown