• Hi, I’m fairly new to custom post types and wanted clarification on how to achieve something and if I’m going down the correct path..

    I want to create a custom post type called ‘Movies’ than have sub genres Horror, comedy sci fi etc using the CPT UI

    I plan on creating a post type called Movies making it Hierarchical and linking all other sub genre custom posts to this Movies. In hopes that the end user will see the Movies option in their dashboard, be able to post content about a movie and select the genre while loading where i will be putting the custom shortcodes that i wrote to generate each sub genre.

    thanks in advance for any advice.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator cubecolour

    (@numeeja)

    If I understand your requirement correctly, I would build this using a custom post type called ‘movies’ plus a custom taxonomy called ‘genres’ that is assigned to the movies post type.

    Then each movie post can be associated with a genre, and to show all of the movies with the ‘comedy’ genre you would be able to link to the archive for the ‘comedy’ term of the genre taxonomy.

    Thread Starter bradleo

    (@bradleo)

    @numeeja oh thank you I’ll look up custom taxonomy. That makes sense.

    Moderator cubecolour

    (@numeeja)

    There are some useful free tools to help generate the code for custom post types and taxonomies which might make the process easier. eg https://generatewp.com/

    Thread Starter bradleo

    (@bradleo)

    @numeeja thank you!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Custom Post Types and Children’ is closed to new replies.