Skip Navigation

[Resolved] How can I connect private posts using post relation forms?

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

Problem:

Essentially the issue here is that the user wanted to connect in a post relationship form a post that was created as private.

Solution:
Unfortunately it is not possible to link posts that are set to private in the post relationship. The posts will need to be set as public in order for it to show up in the list of posts in the relationship field.

This support ticket is created 5 years, 1 month 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
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

This topic contains 2 replies, has 2 voices.

Last updated by Kyle 5 years, 1 month ago.

Assisted by: Shane.

Author
Posts
#1486719

I have working post forms allowing users to add a new post type "Country Information" and connect it using relationships to another post type "Country". This works fine when all the post are public, but if a post type "Country", is set to private then it is not available to in the dropdown of the post form to link a new post type "Country Information".

In other words, is it possible to have private posts available for linking, both from WordPress admin and post forms?

Making it public doe allow you to link them, but in my use case I need the private functionality of the posts.

Thank you.

#1486937

Shane
Supporter

Languages: English (English )

Timezone: America/Jamaica (GMT-05:00)

Hi Kyle,

Thank you for getting in touch. Unfortunately it is not possible to link posts that are set to private in the post relationship. The posts will need to be set as public as you're currently aware of.

For this you will need to open a feature request and there is no official way to modify the query selectors that would load the posts that can be added in a relationship.

What I recommend that you do is to go to the link below to submit the feature request.
https://toolset.com/home/contact-us/suggest-a-new-feature-for-toolset/

Not much else I can do here since we don't have any code that can modify the query for this.

Thanks,
Shane

#1487007

Thank you for the help, Shane. I will have to work on an alternative solution for achieving the desired result.