Accueil › Toolset Professional Support › [Résolu] View with child post type: hide posts where parent is private/concept
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.
Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.
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)
Marqué : Displaying post relationships, Views plugin
Documentation connexe :
Ce sujet contient 6 réponses, a 4 voix.
Dernière mise à jour par Christian Cox Il y a 6 années et 2 mois.
Assisté par: Minesh.
I have two CPT's with a child/parent relation. I have created a view for the child posts and want to filter/hide the child posts where the parent post status is private or concept.
How can I do that?
Hello. Thank you for contacting the Toolset support.
Well - I would like to know from where the concept post status is arise?
Do you see concept post status when you try to filter your view by post status?
More info:
=> https://toolset.com/documentation/user-guides/filtering-views-query-by-post-status/
Hi Minesh,
Thanks for your answer. I found the filter for post status. But this filters the child posts itself. It is the parent post which status I want to filter.
So I have a view for child posts which are all published. Some parent posts are nog published. If so I do not want to show the child posts.
Is this possible?
Hi Minesh,
Thanks for your answer. I found the filter option for post status. But this filters the child posts itself. I have a view with child posts which are all published. Some parent posts are not published. If so, I do not want to show the child posts.
Is this possible?
So - are you using the nested view to display parent and child posts? If Yes - Yes, its possible, but I need to check first how you are displaying your posts currently to have a better understanding about your current setup.
Could you please share problem URL where you are displaying your posts and an example which post is not published and for which post you want to hide the post.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Hi Minesh,
hi martijnH,
I have exactly the same issue. If you guys find a solution, please share it.
Cheers,
Alex
@alexanderL-2, feel free to follow along in the new ticket for some additional information: https://toolset.com/forums/topic/view-with-child-post-type-hide-posts-where-parent-is-private-concept-2/#post-1120830