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 14 topics - 286 through 299 (of 299 total)
Problem: I have a Form used to create child posts. On a parent post, I have inserted a Create Child Post Link, linking to the new child post Form. In the past, the parent post was automatically associated with the child post. Now, the child post is created but not associated with the parent.
Solution: Add a post relationship field to the new child post form and set the value using the same URL parameter used in your Create Child Post Link URL. Add some CSS to a wrapping div element to hide the field.
<div style="display:none;">[cred_field field='@ob-exhibitor_brand.parent' class='form-control' output='bootstrap' select_text='--- not set ---' author='$current' urlparam='parent_ob-exhibitor_id']</div>
Problem: I would like to allow my site visitors to select a group of posts and generate a report.
Solution: You could handle this with two custom post types - one Report and one Member. Create a many-to-many relationship between these two post types. Then use post relationship Forms to create links between a Report and any Members the User selects.