Skip Navigation

[Resolved] Child Post inherit parent post taxonomies in order to build custom search filter

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

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10:00 – 13:00 10: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/Kolkata (GMT+05:30)

This topic contains 2 replies, has 2 voices.

Last updated by David 7 years, 5 months ago.

Assisted by: Minesh.

Author
Posts
#531443

I am trying to build a view with a parametric search filter for child posts.

Ultimately, it seems this relies on the child post inheriting the parent post's taxonomy terms.

It appears there is no easy way to do this, not even when we build the post relationship inside the parent post.

I have this set-up:

Parent Post is "Services" - Service Providers
Child Post is "Company Offices" - each office (branch) for the service provider.

The Child Post is used to cluster a group of custom fields relating to different office locations. I'd rather not use another CPT for this, but that I think is the Types way for clusters of fields.

So, when I have created my parent post, I can use the Post Relationship entry box to add multiple locations, but the child post does not inherit the parent post taxonomies.

It also does not appear to be possible to add the taxonomy selector box to the post relationship box, which would enable me, at the point of post creation, to manually assign the terms to the child post without having to then navigate away from the parent post to go and edit the newly created child post.

Is that right? Or am I missing some opportunity?

May be this is a feature request, to be able to easily assign terms to child posts in the post relationship box?

#531526

Minesh
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello. Thank you for contacting the Toolset support.

You are right - there is no native feature available so that you can inherit the parent taxonomy terms while creating child post but you can have taxonomy field available with post-relationship box.

To display taxonomy field with your post-relationship box for your child post:
1) Go to Toolset => Post Types >> Edit the parent custom post type.
2) "Post Relationships (Parent / Child)" section, navigate to "Children Post Types" section
3) locate your child post type and click on "Select fields".
4) In popup select option "Specific fields" and select your desired fields and save the settings. you will see the taxonomy field, you should checkmark it and save the setting.

#531551

Awesome, that's great thank you.