WordPress 将文章类型存储在 posts 表中,允许开发者注册自定义文章类型以扩展现有类型。本章介绍如何注册自定义文章类型、从数据库检索其内容,以及如何向公众展示。
WordPress stores the Post Types in the posts table allowing developers to register Custom Post Types along the ones that already exist.
This chapter will show you how to register Custom Post Types, how to retrieve their content from the database, and how to render them to the public.