CRED plugin allows you to build forms that create child posts and set parents for these posts, supporting the parent-child relationship functionality from Types plugin.
When you ask for help or report issues, make sure to tell us the structure of your content and the relationship between the content types.
Viewing 15 topics - 526 through 540 (of 569 total)
Problem:
A Form publishes/edits child posts from a one-2-many relationship, and includes a field to select the parent post. The parent posts are not loading.
Problem:
How to auto fill the parent field with current post ID with Toolset forms
Solution:
You should use value attribute and assign it the current post ID using shortcode [wpv-post-id] in order to auto select the current post ID from parent dropdown select.
For example:
<div class="hide_parent">
[cred_field field='@dom-otzyvy.parent' select_text='--- not set ---' value="[wpv-post-id]" class='form-control' output='bootstrap']
</div>
Problem:
I need to automatically set the related post directly
Solution:
To dynamically connect the parent/child post using Toolset Form hook "cred_save_data" with post relationship API function "toolset_connect_posts".