Skip Navigation

[Resolved] View with child post type: hide posts where parent is private/concept

This support ticket is created 6 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.

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 6 replies, has 4 voices.

Last updated by Christian Cox 6 years, 2 months ago.

Assisted by: Minesh.

Author
Posts
#1100666

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?

#1101330

Minesh
Supporter

Languages: English (English )

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

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/

#1101362
View Bewerken ‹ Schaaktrainer Jop Delemarre — WordPress - Google Chrome.jpg

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?

#1101367
View Bewerken ‹ Schaaktrainer Jop Delemarre — WordPress - Google Chrome.jpg

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?

#1101615

Minesh
Supporter

Languages: English (English )

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

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.

#1102533

Hi Minesh,
hi martijnH,

I have exactly the same issue. If you guys find a solution, please share it.

Cheers,
Alex

#1120831