• Resolved bradleo

    (@bradleo)


    Is going down the post types and children route correct for doing this

    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 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Honestly, since I first took over for support for CPTUI, I’ve always used “movies” for the post type, and then “genre” as a taxonomy.

    An example would be say “Lord of the Rings”. That general name could be the parent, and then “Fellowship of the Ring”, “The Two Towers”, and “Return of the King” could be child posts of “Lord of the Rings”. Then, on the genre side, you’d have “fantasy”, “fiction”, “adventure” etc.

    The only reason I could think of right now is if you were wanting the genres mixed in with the post slugs for a given permalink. Something like mysite.com/movies/lord-of-the-rings/fantasy/the-two-towers/ or similar, but this is just me guessing at the moment on possible intents.

    Thread Starter bradleo

    (@bradleo)

    @tw2113 i see, didn’t think of taxonomy that makes sense. I’m creating a page that will have section for movie reviews (written by owner of website) which have shortcodes to populate the section based on whatever the website owner updates their movie posts so taxonomy makes the most sense. Thank you, this is exactly why I wanted to consult you all.

    Thanks,
    B

    Plugin Contributor Michael Beckwith

    (@tw2113)

    The BenchPresser

    Glad I could provide some guidance. Let us know if you need anything else.

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

The topic ‘Post types and Children’ is closed to new replies.