Skip Navigation

[Closed] select draft parent from dropdown list in edit child CRED form

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.


This topic contains 3 replies, has 2 voices.

Last updated by Adriano 6 years, 6 months ago.

Assigned support staff: Adriano.


I am trying to:
Create a CRED form to edit an appearance which will create a many-to-many-relationship between two posts.
In this CRED form I inserted a parent selector field.

	<div class="cred-group cred-group-parents">
		<div class="cred-field cred-field-_wpcf_belongs_my_cpt_id">
			[cred_field field="_wpcf_belongs_my_cpt_id" post="my_cpt" value=""]

I visited this URL: ,

I expected to see:
In the frontend CRED parent selector field I expected to see any post whether published or not.

Instead, I got:
In the frontend CRED parent selector field I only see published posts.

I tried to add this filter to functions.php as described in the thread above but that did not solve the problem:

add_filter( 'wpcf_pr_belongs_post_status', 'my_wpcf_pr_belongs_post_status' );
function my_wpcf_pr_belongs_post_status($statuses)
       $statuses[] = 'draft';
       return $statuses;

Could you please help me with that issue?

Thanks in advance.


Hi Jonathan,

Did you try to replace "my_cpt" with the right CPT's slug?

Please let me know if you are satisfied with my reply and any other questions you may have.


Adriano Ferreira


Yes, I replaced the slugs here just for readability issues.
This is the original code:

	<div class="cred-group cred-group-parents">

		<div class="cred-field cred-field-_wpcf_belongs_rezepte_id">
			<label class="cred-label">Übergeordnet zu rezepte</label>
			[cred_field field="_wpcf_belongs_rezepte_id" post="rezepte" value=""]

I need to request temporary access (wp-admin and FTP) to your site in order to be offering better help. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

The topic ‘[Closed] select draft parent from dropdown list in edit child CRED form’ is closed to new replies.