julieP
Fils de soutien créés au cours des 30 derniers jours : 2
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
Add Parent Post Title to Child Post Title Using cred_save_data Function
Commencé par : julieP
in: Toolset Professional Support
Problem: I have a CRED form that allows users to create child posts. Using cred_save_data, I would like to create a custom post title using information stored in a custom field on the parent post. Solution: In cred_save_data, you will be able to determine the parent post's ID using get_post_meta to access _wpcf_belongs_parentslug_id. Then you can get the custom field value using get_post_meta, the parent ID, and the custom field slug: ... // get the parent ID from the child postmeta $parent_id = get_post_meta($post_id, '_wpcf_belongs_parentslug_id', true); // get the title from the parent postmeta $custom_title = get_post_meta( $parent_id, 'wpcf-custom-field', true ); ... Relevant Documentation: https://developer.wordpress.org/reference/functions/get_post_meta/ |
2 | 5 | Il y a 7 années et 3 mois | ||
Link to Support Threads
Commencé par : julieP in: Toolset Professional Support |
2 | 6 | Il y a 7 années et 3 mois | ||
Displaying CRED usermeta in Post Form
Commencé par : julieP
in: Toolset Professional Support
Problem: I would like to display the value of a User custom field inside a CRED form. Solution: Use the wpv-user shortcode and include the 'wpcf-' prefix before the field slug: User shortcode: [wpv-user field='wpcf-business_name'] Relevant Documentation: https://toolset.com/documentation/user-guides/views-shortcodes/#wpv-user |
2 | 5 | Il y a 7 années et 3 mois | ||
Forum Search Not Returning Any Results
Commencé par : julieP
in: Toolset Professional Support
Problem: The forum search function is not working. Solution: This issue has been resolved by our systems team. |
2 | 5 | Il y a 7 années et 3 mois |