Custom Post Type: How to get it working?
-
I have created Custom Post Types using the “Custom Post UI” plugin. This in my case is “Products”.
This works. I see in the admin area a menu item called Products.
Then I create some custom fields for Products type, with the “Custom Fields” plugin. (Which is so cool, and the very best among similar CMS-wannabe plugins, that it really should be in core WP install, without which WP is only a toy cms.)
This works too. Within each Products “post”, I see these custom fields.
BUT NOW comes the problem.
How do I:
(1) Show the archive for custom post type (Products, in my example) in a unique template and design it to be different from regular category templates? I tried naming my category template differently (“category-products.php”) but this doesn’t work, because Products is not a category per se.
(2) Show a Single Post for this in a unique template for this Products post type?
The “has_post_format” does not work for custom post types. I am using the latest WP as of this comment, which is 3.2.1.
There doesn’t seem to be any sensible documentation on WordPress on this subject. What gives? Is WP serious about becoming a CMS?
Would appreciate any pointers.
Thank you!
The topic ‘Custom Post Type: How to get it working?’ is closed to new replies.