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 i

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!

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745636033a4637396.html

相关推荐

  • 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 i

    22天前
    60

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信