Skip Navigation

[Résolu] Option publicly_queriable for Child posts

Ce fil est résolu. Voici une description du problème et la solution proposée.

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 Il y a 6 années et 11 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.

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
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)

Marqué : 

Ce sujet contient 2 réponses, a 2 voix.

Dernière mise à jour par toolset-dave Il y a 6 années et 11 mois.

Assisté par: Christian Cox.

Auteur
Publications
#602157

Hi, is there any way how to hide child posts from public, like lien caché but keep it displaying in parent posts: lien caché 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.