For my website I'm hoping to host various projects with their own post types.
The reason for this is that each project may need different and unique post-fields to meet their needs on the custom website for their work.
However, simultaneously, I intend to create a media viewer/library that displays collections of the same content. Kinda like Netflix.
The simplest approach I've determined is to have Parent -> Child relationships.
THE IDEA being:
-Create a Projects post (custom post type 1) containing meta information, links, and references to slugs and backend info for all the projects.
-Create a post type (custom post type 2) which parallels the Project added via (custom post type 1)
-I can then set each individual post of (custom post type 2) to be a child of (type 1) OR (type 2)
-When I load the post to my default post template it displays a selected child post content and then displays all child posts in a little slider widget below the content. I can then link INTO the post so that it becomes the post loaded into the layout, thus displaying ITS child posts. Ending whenever there are no more child posts.
How would I go about achieving this functionality?
Is there a field where instead of tags and categories I can literally search/select specific pages?
As in can I make a field where I can say:
[Parent Post]
>Select Parent From Post List Populated By Posts USER Is Allowed To See<
I will be determining a post as a "Collection" via a checkbox in the post.
Would I be able to create a selector of only "Collection == true" posts that are available to the USER?
The only thing I've been able to think up myself is:
Make a taxonomy type for 'child of'
For each post you can then put 1 tag in of whatever name you want, say "TheMeatComic".
Also in the post fields would be a single line for "parent of" which you'd then set to "TheMeatComic"
Then when you load the page you'd query: Posts with child of = post_ID.parent of.
And then populate the page that way.
It seems really messy though and not particularly clean and efficient.
Alternatively you could just have two single line fields for both "Child of" and "Parent of".
Hi,
You description isn't clear, how do you setup the custom post types? how do you setup the post type relationships?
I assume we are talking about this case:
Parent post type "Projects"
-- Child post type "post type 2"
You are going to achieve this:
In a single "Projects" post, display a CRED form for creating it's child "post type 2" post.
If it is, please follow our document, to setup the CRED form:
https://toolset.com/documentation/user-guides/cred-forms-for-child-content/
For your another question:
Would I be able to create a selector of only "Collection == true" posts that are available to the USER?
What kind of "selector" do you want?
I assume the "Collection" is a custom field,
You can create a view list posts, filter by custom field value "Collection == true", see our document:
https://toolset.com/documentation/user-guides/filtering-views-by-custom-fields/
Then manually setup the view's result as a "selector" use HTML codes.