jxycms
1/8/2017 - 11:57 PM

PodAdmin Keep field Relation after drafting

PodAdmin Keep field Relation after drafting

I have a pod created that has a relationship field that points to another pod. This shows all of the posts in a dropdown by post title. The thing I am finding is it does not list draft/unpublished posts. Is there a way to change this so that it shows all posts regardless of their status?

What you need, is to use the “Customized WHERE” field in the “Additional Field Options” field of the Pods editor for the relationship field. You should be able to use 
t.post_status = "draft" OR t.post_status = "publish" 
You will unfortunately need to keep adding ORs for each post status you want to display in that list.