Hi, I'm new to Toolset, and I have questions relating creating a new post type.
1. I see that toolset provide an option of "Pages", with the default to true, when creating a CPT. My question is what is this for? I saw on the documentation that this option means: "is the custom post type a dynamic (post) or static (page) piece of content". What is the difference between the dynamic and static here? I'm using Elementor for page builder, does this option "pages" have something to do with Elementor's dynamic content feature?
2. Also in the CPT options, "hierarchical". Does this have something to do with Toolset's relationship feature? If I would like to create 2 post types "countries" and "cities", I would like the two to be hierarchical that "countries" being the parent post type of "cities". What should do, shall I:
a) set the two post types to be hierarchical when creating them?
b) forget about this hierarchical option along, and just create the two post types and set a relationship between the two through Toolset's Relationships feature?
Sorry that my question seems to be a bit elementary cause I'm a new user to toolset.
Hello. Thank you for contacting the Toolset support.
1. I see that toolset provide an option of "Pages", with the default to true, when creating a CPT. My question is what is this for? I saw on the documentation that this option means: "is the custom post type a dynamic (post) or static (page) piece of content". What is the difference between the dynamic and static here? I'm using Elementor for page builder, does this option "pages" have something to do with Elementor's dynamic content feature?
===>
Well - that "Pages" setting is belongs to "rewrite" section you can see with the following link:
=> https://codex.wordpress.org/Function_Reference/register_post_type
'pages' => bool Should the permalink structure provide for pagination. Defaults to true
2. Also in the CPT options, "hierarchical". Does this have something to do with Toolset's relationship feature?
====>
The option "hierarchical" is described under "hierarchical" section with the following link:
=> https://codex.wordpress.org/Function_Reference/register_post_type
hierarchical
(boolean) (optional) Whether the post type is hierarchical (e.g. page). Allows Parent to be specified. The 'supports' parameter should contain 'page-attributes' to show the parent select box on the editor page.
Default: false
If I would like to create 2 post types "countries" and "cities", I would like the two to be hierarchical that "countries" being the parent post type of "cities". What should do, shall I:
a) set the two post types to be hierarchical when creating them?
==> NO
b) forget about this hierarchical option along, and just create the two post types and set a relationship between the two through Toolset's Relationships feature?
==> Yes, if you want to build post relationship between your post types, you should follow the post relationship docs and try to create one to many post relationship between your country (parent) and cities (child) psot types.