• Hello, i want to make a custom post type called resources and i want to have of course the content but also the ability to type in the external url to the resource links…any pointers ?

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter nyckidd

    (@nyckidd)

    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

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘custom post type’ is closed to new replies.