Implement query string builder to construct conditions when fetching posts