Skip Navigation

[Résolu] list child posts based on parent's taxonomy

This support ticket is created Il y a 7 années et 7 mois. 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 17 réponses, has 3 voix.

Last updated by Minesh Il y a 7 années et 7 mois.

Assisted by: Minesh.

Auteur
Publications
#434474

Minesh
Supporter

Languages: Anglais (English )

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

Ahh, now I understand. For that you need to create a custom shortcode or function. You should pass current taxonomy ids/slugs as well as parent taxonomy ids/slugs and then write your business logic that current post in loop falls in the taxonomy term which parent has or not. If it shared same taxonomy term as parent, you should display the post otherwise you should not display the post.

You can display the post conditionally using views shortcode: [wpv-conditonal]
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-shortcodes-in-conditions/
=> https://toolset.com/documentation/user-guides/conditional-html-output-in-views/using-custom-functions-in-conditions/

More info:
https://toolset.com/documentation/user-guides/getting-started-views/part-6-conditional-statements-in-views/

#434544

Thanks Minesh. I think I need more precise instructions to figure this out. Are you able to do that? Otherwise, do you guys offer consulting services?

#434608

Minesh
Supporter

Languages: Anglais (English )

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

Yes - you can contact our certified partners for your any custom programming needs:
=> https://toolset.com/consultant/

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.