WordPress.org

Support

Support » Plugins and Hacks » Hacks » [Resolved] Taxonomy and post types

[Resolved] Taxonomy and post types

  • madsrh123
    Member

    @madsrh123

    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

Viewing 3 replies - 1 through 3 (of 3 total)
  • everyeurocounts
    Member

    @everyeurocounts

    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!

    madsrh123
    Member

    @madsrh123

    Thanks, I’ll give it a try 😀

    adispiac
    Participant

    @adispiac

    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.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Taxonomy and post types’ is closed to new replies.