Skip Navigation

[Resolved] Taxonomy or Post Relationships?

This support ticket is created 5 years, 3 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.

Our next available supporter will start replying to tickets in about 0.28 hours from now. Thank you for your understanding.

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)

This topic contains 1 reply, has 2 voices.

Last updated by Luo Yang 5 years, 3 months ago.

Assisted by: Luo Yang.

Author
Posts
#1306125

Hi, I need to recreate this existing Knowledge/Support website hidden link with WordPress, it was build with DocFX.

Shane on chat previously told me to go with Taxonomies, but I am afraid that it will not be sufficient as the structure is really complex, so I am thinking I will need to use Post Relationships instead, or on top of Taxonomies. I have no experience with Post Relationships atm 🙁

The site covers several products (eSignatures, Browser Package, eSignatures integrations, ...) and some of them even have several versions. When you start browsing, the topics sometimes go as deep as 4 or 5 levels.

We will need to, of course, display each support article, but also a navigation on the left and a breadcrumb on top.

#1306339

Hello,

I have checked the URL you mentioned above, I don't think it needs Post Relationships.

In my opinion, it needs just one hierarchical custom post type "Documentation"
https://codex.wordpress.org/Function_Reference/register_post_type#hierarchical
For example, create a post type "Documentation" with Toolset Types plugin:
- in section "Sections to display when editing", enable option "Page Attributes"
- in section "Options", enable option "hierarchical"

So you will be able setup "Documentation" posts as hierarchical relationship, just like WordPress built-in post type "Pages", like this:
- eSignatures
-- eSignatures 5.0
---- User Documentation
------ 1. Introduction
---- API Documentation
...

For example, to recreate the URL you mentioned above:
hidden link
You just need to setup a nested view:
1) Parent post view
- Query posts of post type "Documentation"
- Filter by "Post parent filter":
Select top-level posts with no parent.
- in view's loop, display Documentation post's title + below child post view

2) Child post view
- Query posts of post type "Documentation"
- Filter by "Post parent filter":
Select posts whose parent is the current post in the loop.
- Display Documentation post's links

More help:
https://toolset.com/documentation/user-guides/displaying-brother-pages/