Skip Navigation

[Resolved] Option publicly_queriable for Child posts

This thread is resolved. Here is a description of the problem and solution.

Problem: I have a parent post type and a child post type. On the parent post, I would like to show a View of child posts. The child post type should be editable in the backend and I should be able to select it in a CRED form editor. However, I want to remove the child post permalinks from my site. How can this be accomplished with the option publicly_queriable?

Solution: CRED is designed to show all post types with the following options selected:
- "show_ui"
- "publicly_queriable"

This means that you cannot use CRED with a post type which is not publicly_queriable. Instead, you could use a Content Template to hide the contents of the child posts from your Users. Then if you turn off "rewrites" in the child post type options, the pretty permalinks will be disabled.

This support ticket is created 6 years, 11 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
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

Tagged: 

This topic contains 2 replies, has 2 voices.

Last updated by toolset-dave 6 years, 11 months ago.

Assisted by: Christian Cox.

Author
Posts
#602157

Hi, is there any way how to hide child posts from public, like hidden link but keep it displaying in parent posts: hidden link and also in backoffice?

If I disable option publicly_queryable in Child´s post Options, the Child post will not be visible and it will keep displaying in parent post (its correct), but it disappears from backend CRED forms as option for "Post Types connected to this form:". How to solve it?

#602339

CRED is designed to show all post types with the following options selected:
"show_ui"
"publicly_queriable"

This means that you cannot use CRED with a post type which is not publicly queriable. Instead, you could use a Content Template to hide the contents of the child posts from your Users. Then if you turn off "rewrites" in the post type options, the pretty permalinks will be disabled.

#602615

Thank you, it helped me.