Roy
(@gangleri)
Custom post types are better implemented in WP3.1. I made mine the old way and fortunately things still work. Read this and control+F a for “custom post types” for more information.
http://codex.wordpress.org/Version_3.1
Hey, i have 3.1 running but i have never used custom post types before is there a working example that shows you how to show the latest 10 posts from a custom type post/category ?
you just need to make a template called archive-resources.php (archive-post_type.php is the format)
I use a copy of index.php and just rename it, to start with
That will display the posts
Then you must turn on the archive feature in the code you registered your CPT with using
'has_archive' => true
and the url would them be somain.com/resources in your situation, but that can be changed…
http://mark.mcwilliams.me/2010/10/wordpress-3-1-introduces-custom-post-type-archives/
is an excellent article about has_archive