WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Taxonomy and post types (4 posts)

  1. madsrh123
    Member
    Posted 4 months ago #

    I know that there's a ton of threads on this topic, but I can't find any help on this specific issue.

    Let say I have a movie review site and want to be able to select a film production company for each movie inside my post-type.
    I could do this with taxonomy but then I can't add/edit company logo, description, etc.

    I guess I looking for a post-type inside a post-type or ....?

    Can any on help me or perhaps point to a tutorial?

    //MadsRH

  2. everyeurocounts
    Member
    Posted 4 months ago #

    What you can do is create a new post type for the company. so you can use the post editor to make the changes or a front end submit.

    On your movie post type use the post meta (add_post_meta) function to save the post id of the production company when you are saving the post. (use meta box within the post and populate with a list of company e.g.

    get_posts( array('post_type'=>'company') );

    There are plenty of topics on each!

  3. madsrh123
    Member
    Posted 4 months ago #

    Thanks, I'll give it a try :D

  4. adispiac
    Member
    Posted 4 months ago #

    Correct, basically you'll need post to post relationships to link the two custom post types (Movies and Production Company) together.
    The tutorial above covers the easy way to achieve this, with no coding, by using a premium version of WCK - Custom Fields and Post Types plugin.

Reply

You must log in to post.

About this Topic