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.
Problem:
The customer asked if it was possible to exclude a value in a select2 dropdown on a relationship form based on a dynamic value set by a shortcode.
Solution:
Guided there is no built-in feature available for this and will involve creating a custom select field in the form. Also shared a link to another forum thread with a similar solution: https://toolset.com/forums/topic/dynamic-field-values-from-cpt/
A user reported that she is using the post-relationship to store the "Year" information with the posts and wondered if using a custom taxonomy for this would be better.
Solution:
Confirmed that from a performance perspective, filtering/searching by taxonomy is always more efficient compared to custom fields and post-relationships and so it would be better to track the year custom taxonomy.
A user reported that the "cred-delete-relationship" shortcode is not working inside one of the views.
Solution:
Guided that, in the "cred-delete-relationship" shortcode, the "role_items" attribute works in a view where a relationship filter is being used.
Since the view in question is not using any relationship filter, you'll need to replace the "role_items" attribute with the "related_item_one" and "related_item_two" attributes.
Problem:
The customer reported that the custom code linked to the 'cred_save_data' hook is not working correctly to get the custom field values from the related parent post and set them in the newly created post's title.
Also, the shortcode to include the custom field values from the related parent post in the form's email notification is also not working.
Solution:
After troubleshooting, suggested some changes in the custom function and the shortcodes for the related parent's custom field values.