The user’s Toolset View on the Search page displays only 10 posts with pagination instead of showing all posts on a single page.
Solution:
- Edit the page containing the View.
- Open the Block Navigator (click the top-left hamburger menu in the editor).
- Select the View Block in the Block Navigator.
- In the right-hand Block Settings sidebar, locate the Pagination section.
- Deactivate the pagination option to display all results on a single page.
I need to create a view that displays posts from a custom post type (CPT) published between two selected dates. The end-user should be able to select the date range (start and end) using calendar date pickers on the front end.
Solution:
Create a custom field to store the published date of posts. Use the legacy Views interface to create the view, and manually add select boxes for the date range. Then, apply custom code to modify the query and reload the page with filtered results.