How can I use one instance of page.php to display different custom post types?

At the moment I’m using multiple page templates to display custom posts (page-events.php, page-resources.php) and it seems wasteful.

How can I reuse page.php and just display the post type relating to the page a user has clicked on?

Thanks!

Read more here:: How can I use one instance of page.php to display different custom post types?

Leave a Reply

Your email address will not be published. Required fields are marked *