34 Responses

  1. michael soriano
    michael soriano January 18, 2011 at 16:49 | | Reply

    this is an excellent resource. good work.

  2. Ayman Aboulnasr
    Ayman Aboulnasr January 19, 2011 at 07:27 | | Reply

    This is one of the best WordPress tutorials out there. Custom Post Types is essential for transforming WordPress itself from a blogging platform to a complete Content Management System.
    Well done!

  3. Tim Stringer
    Tim Stringer April 27, 2011 at 23:16 | | Reply

    I’m thinking of using Custom Post Types on a current project and this is by far the most complete resource that I’ve found so far. Thanks very much!

    Do you have any examples of WordPress sites that make use of Custom Post Types that you’d be willing to share? I think this would help myself and others get a better sense of what’s possible.

  4. Karen
    Karen July 21, 2011 at 00:46 | | Reply

    CHEERS! Great work… a really useful article I’ll be bookmarking as a reference… thanks so much! =)

  5. Arun
    Arun July 23, 2011 at 01:09 | | Reply

    It is the great article which covers everything about the custom content type in wordpress. Great effort has been made to list each and every option to create custom content type. Thanks for helping the wordpress community.

  6. Interesting Websites
    Interesting Websites August 14, 2011 at 10:59 | | Reply

    I’m a beginner with WP, but I guess I’ll go around coding it some day too.

  7. Pippin
    Pippin August 15, 2011 at 00:42 | | Reply

    Excellent! You’ve definitely given one of the most well-rounded resources out there. And thanks for your comments about Easy Content Types!

  8. interactive web design
    interactive web design October 22, 2011 at 20:01 | | Reply

    some really really great stuff over here…and a great list of plugins too..thank you for sharing

  9. Dave
    Dave November 8, 2011 at 18:23 | | Reply

    Hey Jean,

    Great post! One of the more useful I’ve found on the subject.

    I do have a question: I’m using a custom post type, with the Custom Post Type Relationship plugin (http://wordpress.org/extend/plugins/custom-post-relationships/). Using their ‘get’ function, with ‘get_post_meta’, I’m pulling custom post types that are related to the single post page that I’m currently on.

    My problem is that I’m trying to get the title of the custom post to show, but the custom post type I created is using the normal post title field. How do I pull that single piece of data onto my page?

    If you have any thoughts, I’d love to hear them. Thanks,
    Dave

  10. Mads Gorm Larsen
    Mads Gorm Larsen November 8, 2011 at 21:59 | | Reply

    Hi Jean

    Thanks for this great tutorial. In your example – with books, it would make sense if you could get a dropdown menu for authors, publishers etc. Like in a relational database, you should then only have to update in one place if you need to update a lot of pages with a book on each page. Hope you see what I mean – is this possible?

    Thanks in advance for any help

  11. Mads Gorm Larsen
    Mads Gorm Larsen November 8, 2011 at 22:52 | | Reply

    No not really.

    Let’s say I have a relational database with books – in one table I have all the books, in another table all the authors biographies, in another table I have information about publisher. The whole database is relational, so that each book relate to the tables with author biographies and information about the publisher. Now on my wordpress website I want one book pr. page, and I want so that the author biographies and publisher information is visible for each book. When I update the author biography, or the publisher information then it is updated through out the site on every page about every book.

    So what I would like it this, I want to be able to go and make a new book post, and then select in a drop down list, who is the author and who is the publisher. That should then display the author biography, and some short information about the publisher on the page about the book.

    But I also need to be able to update the information, that is go in and ad information about the author biographies in one place, and have it effect every page with books by that author.

    Does that make sense?

    Thanks a lot for taking time to reading this, and hopefully understand 🙂

  12. John Nguyen
    John Nguyen November 18, 2011 at 17:52 | | Reply

    this is wonderful man. thanks for the compilation!

  13. James
    James December 19, 2011 at 23:13 | | Reply

    Hi thanks for the tutorial I’m getting an error:
    Notice: Undefined index: url_noncename in /Users/admin/Dropbox/Sites/pianocourse/wp-content/themes/pianocourse/custom-posts.php on line 380

    any ideas? Many thanks

  14. John
    John January 6, 2012 at 16:52 | | Reply

    Thanks for the tutorial

    created the books [posttype] and additional fields but I can’t make the books apear on the website. It won’t show. Do you have an additional tutorial for creating a suitable working template for it?

    John

  15. fedesolare
    fedesolare February 8, 2012 at 04:48 | | Reply

    Wow, excellent article 😉

    Jean a question:

    I need a search engine in WordPress, which is able to see beyond simple pages and post, also post type, taxonomies and custom field.

    Some time ago I used “wp custom search field”, but with the new version of wordpress does not work anymore.

    You have found some solution to this problem?

    Thank you very much 😉

  16. czmarci
    czmarci February 14, 2012 at 09:47 | | Reply

    Very very helpful, thank you. 😉

  17. Mark Simchock
    Mark Simchock February 19, 2012 at 23:51 | | Reply

    Thanks Jean.

    Perhaps you can help out with an issue I’m having? I’m using a shortcode to insert custom post content into a regular post content. Unfortunately, the share plugin I’ve been using (Socialable) adds share links to both the reg post *and* the inserted custom post.

    Is there a way to force add_filter(‘the_content,…) to only filter standard posts and ignore custom posts?

    If you have any suggestions and can ping me via email that would be great. Thanks.

  18. Mark Isherwood
    Mark Isherwood April 28, 2012 at 19:56 | | Reply

    Hello! Thanks for sharing your vast information with the rest of us.
    I have a question, and I know it must have a somewhat simple answer, but I guess I don’t know how to word it correctly to get a decent answer in a Google search.
    I have manually inserted a Custom Post Type on my front page that works fine.
    Actually I am using Excerpts on the front page in a side column.
    I want the “Read more” link to link to a custom page template for my Custom Post Type entries only instead of the generic page template.
    How do I accomplish this? Is there a way to associate a Custom Template in the function that creates the Custom Post Type in functions.php?
    Any help you can offer would be greatly appreciated.
    Thanks!

    1. Mark Isherwood
      Mark Isherwood April 28, 2012 at 20:07 | | Reply

      I did find an answer to my own question on http://codex.wordpress.org/Post_Types . I had apparently overlooked it several times.

      “In the same way that posts are shown on their own page with single.php, custom post types will use single-{posttype}.php if it’s available.”

      I renamed my custom page using that manner and it works beautifully.

  19. Moshe
    Moshe June 14, 2012 at 14:03 | | Reply

    Do you like Types more than Easy Content Types [i.e., independent of views]? Is it possible to use Easy Content Types in conjunction with views?

    Also, one month later – what are you thoughts about Views?

  20. Amit
    Amit September 30, 2012 at 00:24 | | Reply

    Great post! thanx 🙂

Leave a Reply

  
Please enter an e-mail address