最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin8浏览0评论

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!

发布评论

评论列表(0)

  1. 暂无评论