paulB-10
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
What is the recommended way to control access to views
Started by: paulB-10 in: Toolset Professional Support |
2 | 6 | 5 years, 6 months ago | ||
Reuse Custom Field
Started by: paulB-10
in: Toolset Professional Support
Problem: Setup relationship between users and custom post types. Solution: For example, you can create a custom post type "Member": https://toolset.com/forums/topic/reuse-custom-field/#post-1281463 Relevant Documentation: |
2 | 3 | 5 years, 7 months ago | ||
Sport Association Membership Site
Started by: paulB-10 in: Toolset Professional Support |
2 | 4 | 5 years, 7 months ago | ||
Replace the the post link label
Started by: paulB-10
in: Toolset Professional Support
Problem: I would like to change the text generated by the post link shortcode. Solution: There's no option to filter the text of the wpv-post-link shortcode, but you can use the wpv-post-url shortcode to create a custom link. <a href="[wpv-post-url]">Edit Tournament</a> Relevant Documentation: |
2 | 7 | 5 years, 7 months ago | ||
Set the Default Form Title
Started by: paulB-10
in: Toolset Professional Support
Problem: The issue here is that the user wanted to dynamically generate their post title based on the custom field inputs. Solution: This can be done by using the hook below. function ttd_save_data_action($post_id, $form_data){ // Change your CRED Form "ID" accordingly below if ($form_data['id']==ID){ //Declare the content of your variables, change "your_custom_field_slug" accordingly $custom_value = get_post_meta( $post_id, 'wpcf-your_custom_field_slug', true );//get posts' Date field value (timestamp) $custom_title = gmdate("m-d-Y", $custom_value);//convert timestamp to m-d-y for output //collect data and define new title $my_post = array( 'ID' => $post_id, 'post_title' => $custom_title, 'post_name' => $custom_title, ); // Update the post into the database wp_update_post( $my_post ); } } add_action('cred_save_data', 'ttd_save_data_action',10,2); Ofcourse this will need to be adopted to fit your case but this is generally how it is done |
2 | 7 | 5 years, 7 months ago | ||
Relationships with multi-field key
1
2
Started by: paulB-10 in: Toolset Professional Support |
2 | 17 | 5 years, 7 months ago | ||
Training Course Custom Types – from Novice to Expert Chapter 4.1
Started by: paulB-10 in: Toolset Professional Support |
2 | 4 | 5 years, 7 months ago |