2012-11-27

2 Great Articles on Custom Post Types in WordPress

By Justin Tadlock:
http://justintadlock.com/archives/2010/04/29/custom-post-types-in-wordpress
In WordPress 3.0, we’ll have the capability to easily create and manage content via custom post types. Not only that, but you won’t have to rely on a plugin to do this for you. It can be done via your theme’s functions.php file with a few lines of code.
By Richard Shepherd:
http://blog.teamtreehouse.com/create-your-first-wordpress-custom-post-type
...I think the great thing about WordPress is we can use it in the way we feel it should be used. There might be a different or better way, but there is no wrong way to do something (unless it doesn’t work!).
► Both articles provide a great introduction to the custom post types, with detailed PHP code examples. Custom types allow to associate additional information (fields) with a specific group of WordPress posts, and distinguish those posts from others in the admin interface. Having them, it's possible to extend WordPress to a powerful dabatase application.

No comments:

Post a Comment