Skip Navigation

[Résolu] Control other Post Types with Toolset

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem: Can we control other Software's Post Types with Toolset, so we could, for example, change the Post Types settings, such as add hierarchical true, or maybe remove archive true?

Solution: The only way to control other's Post Types with Toolset is to actually replace those with Toolset.

That may be a solution in cases where the other software later can be removed - as otherwise the Post Type would be registered twice. It is no solution when the other Software strongly relies on this Post Type and its settings. How strongly that software relies on such settings of Post Types depends on the software, it's best asked to the support offered by 3rd parties.

You can always easily set any post type into a relationship, as there, the post type does not need to be created by Toolset, to work. Also, you can display such data with Views easily, as long the post type is not fully hidden to the public.

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.

Marqué : 

This topic contains 3 réponses, has 2 voix.

Last updated by marcusC-4 Il y a 2 années et 3 mois.

Assigned support staff: Beda.


I am using LearnDash on a site and I’d like to have hierarchy support for one of their post types (Lessons). I want to be able to say this lesson is a child of another lesson. Just like you can do with pages.

Is it possible to add that?


You cannot edit non-Toolset Post Types with Toolset Types (unless native Posts and Pages, and those are only limitedly).

The only way to control other's Post Types with Toolset is to actually replace those with Toolset.

That is likely not what you want to do with the LearnDash Post type, as that Plugin will have reasons to register a certain post type the exact way they do.

However, setting a post type into a relationship wouldn't be the issue - for this, you could just add a Relationship in Toolset > Relationships between that and any other post type.

This is not the native WordPress Hierarchical Relationship but it is similar as you could create a One To Many relations, allowing one parent only, for many posts child posts.
The relationship cannot be within the same post type though, as Pages hierarchy could.

The best here would be:
1. Consult with the Developers of that Post Type (LearnDash) if it is OK adding hierarchy support to the type. They will know if this potentially could ruin their workflow or functionality.
2. If there is no issue with that you could use WordPress's API to filter the Post Types Args: register_post_type_args().
This filters the arguments with which a Post Type is registered, so you can alter them and return them back to the Post Type register method, adding hierarchy support.
See more information here
An example can be found here

Let me know if this doesn't help or I misunderstood the goal.


Beda, thank you for the reply. Great info here. I’ll reach out to LearnDash support and also consider a new CPT to create these relationships.


My issue is resolved now. Thank you!