WP Resource Center is a simple library running on React.js.
Sorting custom posts on multiple taxonomies in WordPress can be a real hassle using only WordPress's out-of-the box functionality. WP Resource Center works around this limitation by querying post type data (custom posts or otherwise) via the built-in WordPress JSON REST API and presents it on the front end paginated, with multiple filters, and ready to be styled.
It was becoming more and more common among my clients that they consolidate their various marketing materials into a single repository on their website. They had White Papers, Case Studies, eBooks, Infographics, etc. These resources were related to numerous products and addressed numerous distinct industries. In order to make their content more easily available to prospective customers.
-
Copy the library into the appropriate folder in your WordPress theme.
-
Run npm install in that folder.
-
Update /api/wordpress.js with your post type slug and taxonomy slugs.
-
Update /constants/constants.js with your API endpoint root URL (I should probably consolidate these two steps into one file)
-
Run npm start at the terminal