Home › Topic Tag: Forms with post relationships
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.
| Status | Topic | Supporter | Voices | Posts | Freshness |
|---|---|---|---|---|---|
|
Add repeatedly relationship custom post at frontend
1
2
Started by: kelvinL-2 in: Toolset Professional Support |
|
2 | 18 | 4 years, 11 months ago | |
|
Split: How to show the related posts through view
Started by: matthiasV-2 in: Toolset Professional Support |
|
2 | 8 | 4 years, 11 months ago | |
|
Hide the custom fields in a Form and keep the value after save
Started by: kelvinL-2
in: Toolset Professional Support
Problem: I have defined a custom field in my Form and set its value using a URL parameter. I would like to hide that field on the front-end, but if I use HTML comments the field value is not saved. How can I hide the field but save the value from a URL parameter? Solution: Use CSS to hide the field itself or a container element: <div style="display:none;">[cred_field ...]</div> Relevant Documentation: |
|
2 | 4 | 4 years, 11 months ago | |
|
Post relationship issue.
Started by: matthiasV-2 in: Toolset Professional Support |
|
2 | 5 | 4 years, 11 months ago | |
|
Connect host to their properties automatically
Started by: annaA-2
in: Toolset Professional Support
Problem: I have two post types - Hosts and Structures - in a post relationship. Each User can be the author of one Host post, and can create multiple Structure posts using Forms. When the User submits a Form to create one of these Structure posts, I would like to automatically connect it to the User's Host post. Solution: Use the cred_save_data API to trigger custom code when the Structure post is created. Use the toolset_connect_posts API to link the two posts programmatically.
add_action('cred_save_data', 'func_connect_host_with_property',10,2);
function func_connect_host_with_property($post_id, $form_data){
if ($form_data['id']==43){
$current_user_id = get_current_user_id();
$args = array(
'author' => $current_user_id,
'post_type' => 'proprietario',
'fields' => "ids");
$found_profile = get_posts($args);
if(count($found_profile) > 0){
toolset_connect_posts( 'proprietario-struttura',$found_profile[0], $post_id );
}
}
}
Relevant Documentation: |
|
2 | 6 | 4 years, 11 months ago | |
|
Get child post taxonomy or custom field when posting parent CPT
Started by: andrei-laurentiuP in: Toolset Professional Support |
|
2 | 2 | 4 years, 12 months ago | |
|
Relationships
Started by: Juice Rocket® in: Toolset Professional Support |
|
2 | 4 | 4 years, 12 months ago | |
|
Front-end relation form editing deletes intermediary custom field value
Started by: richardA-9 in: Toolset Professional Support |
|
2 | 7 | 5 years, 10 months ago | |
|
CRED Delete Relationship link does not work as expected.
Started by: Twig in: Toolset Professional Support |
|
4 | 15 | 6 years, 11 months ago | |
|
Relationship select box in cred form won't show private posts.
Started by: alisonC in: Toolset Professional Support |
|
3 | 6 | 7 years, 2 months ago | |
|
Impossible to order Parents in CRED by title asc. Same effect for asc & desc
Started by: mohamed-saadC in: Toolset Professional Support |
|
2 | 6 | 7 years, 11 months ago | |
|
problem with date format in CRED
Started by: mohamed-saadC in: Toolset Professional Support |
|
3 | 14 | 9 years, 8 months ago |