Skip Navigation

[Resolved] Trying to make sense taxonomy vs post types, sort of?

This thread is resolved. Here is a description of the problem and solution.

Problem:

Setup hierarchical custom post types with Types plugin.

Solution:

There is a built-in hierarchy relationship within WordPress, just like the WordPress pages. See details here:

https://toolset.com/forums/topic/trying-to-make-sense-taxonomy-vs-post-types-sort-of/#post-1285835

Relevant Documentation:

https://codex.wordpress.org/Function_Reference/register_post_type#hierarchical

This support ticket is created 5 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

Author
Posts
#1285523

[Tell us what you are trying to do?]

I'm creating a site to post my fiction online. most of it is pretty straight forward, being that I have a story type as taxonomy and something like "episode" or" chapter" as post-type. But with one story type, I'm having a bit of trouble. Say, for example, I have a series of novels called The Nyacence Record. Within that series, there are 3 novels, and each novel/book has several narrative arcs, each arch has multiple chapters, and each chapter has serval scenes.

When I want to do is create some kind of hierarchy relationship between each level. So, a reader would be able to pull up, scene 4 from the chapter of the runaway arc, which is a part of the novel/book Pandora's Lament, which is book 3 of the Nyacene Record.

Originally, my idea was to implement something like this:

*** Create POST TYPES: saga, book, arc, chapter, and scene, and relate to TAXONOMY "LONG TALES"

but while trying to implement that, it started to not make sense to me, so I started wondering if I try it the other way around with the following:

*** Create POST TYPE: scene and relate to TAXONOMIES saga, book, arc, chapter, and scene
Now I'm not at all certain if even that makes sense...

[Is there any documentation that you are following?]

I haven't been able to find any relevant documentation and this might be more a matter of my sucky spacial ability keeping me from figuring out something potentially simple

[Is there a similar example that we can see?]

I have not been able to locate an example of toolset being used for this kind of purpose

[What is the link to your site?]
Site is Offline in maintenance mode. Please contact me at mikodragonfly@gmail.com. If you frequent Twitter, you can DM @writergetsreal as well for the temporary Admin Username and Password I created for you.

#1285835

Hello,

There is a built-in hierarchy relationship within WordPress, just like the WordPress pages. See WordPress document:

https://codex.wordpress.org/Function_Reference/register_post_type#hierarchical
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

In your case, I suggest you try these:
1) Create a custom hierarchical post type "fiction" with Toolset Types plugin, and enable below settings:
- in section "Sections to display when editing", enable option "Page Attributes"
- in section "Options", enable option "hierarchical"
So when you edit a "fiction" post, you will be able to setup it's hierarchical structures.

And in a single "fiction" post, you can display it's child posts using post view:
https://toolset.com/documentation/user-guides/filtering-views-query-by-post-parent/

2) You can also create a custom taxonomy "series", assign it with above post type "fiction", then in the archive page of taxonomy "series", it will be able to display related "fiction" posts.
https://toolset.com/documentation/user-guides/create-custom-taxonomies/

For your reference.

#1289217

My issue is resolved now. Thank you!