Gerard
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 |
---|---|---|---|---|---|
The supplied code fails, Field “Title” is required..
1
2
Started by: Gerard
in: Toolset Professional Support
Problem: Create dynamic post title from custom fields. Solution: An example of how to achieve this can be seen below. function gg_fill_full_name( $post_id, $form_data ){ if ( $form_data['id'] == 126) { $firstname = get_post_meta( $post_id, 'wpcf-first-name', true ); $middlename = get_post_meta( $post_id, 'wpcf-middle-name', true ); $lastname = get_post_meta( $post_id, 'wpcf-last-name', true ); $suffix = get_post_meta( $post_id, 'wpcf-name-suffix', true ); if ($suffix == "None") { $suffix = ''; } $result = $lastname . $suffix . ", " . $firstname . " " . $middlename; // $result = $lastname . " " . $suffix . ", " . $firstname . " " . $middlename; if ( !empty($result) ) { $my_post = array( 'ID' => $post_id, 'post_title' => $result, ); // Update the post into the database wp_update_post( $my_post, $wp_error ); } } } add_action('cred_submit_complete', 'gg_fill_full_name',10,2); |
4 | 26 | 6 years, 1 month ago | ||
Can Post forms be used by Guests to create posts?
Started by: Gerard
in: Toolset Professional Support
Problem: Is it possible to allow Guests to create posts by submitting Forms? I have set permissions for these Forms in Access Controls, but I'm still having problems submitting the Forms. Solution: In this case, it looks like the transcript field ( file upload field ) is required. Guests, by default, are not allowed to upload Media. In order for a Guest to be able to upload a file to the Media Library, you must use custom code to allow that permission. I added this code to your functions.php file: add_action( 'admin_init','reset_guest_caps' ,9 ); function reset_guest_caps(){ global $current_user, $wpcf_access; if(isset($_GET['formid']) && $_GET['formid']==126&&$current_user->ID==0) { $wpcf_access->settings=array(); } } |
2 | 9 | 6 years, 2 months ago | ||
Trying to populate the WP Title field with a few other fields..
Started by: Gerard in: Toolset Professional Support |
2 | 3 | 6 years, 2 months ago | ||
How do I display a group of fields only to Administrators?
Started by: Gerard in: Toolset Professional Support |
2 | 3 | 6 years, 2 months ago | ||
wpv-conditional used, but failing to work for certain roles..
Started by: Gerard
in: Toolset Professional Support
Problem: I would like to use conditional HTML to make sure the current User is also the author of the post. Solution: Use the correct wpv-user and wpv-current-user shortcodes in your conditional HTML statements. Relevant Documentation: |
2 | 10 | 6 years, 2 months ago | ||
Need to format a number field (999,999,999), coming from ACF
Started by: Gerard
in: Toolset Professional Support
Problem: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 2 | 6 years, 8 months ago | ||
Looking for a way to display CPT parent and children as an org chart
Started by: Gerard
in: Types Community Support
Problem: Solution: 1. First you will need to create relationship between parent/child posts and set them as one-to-many relationships. 2. And then display the relational data on a page using Views, both these are explained here in detail: 3. After that you will need to style the relational data using pure html and css. Like its built here as examples (the sample code is also provided here): |
2 | 3 | 7 years, 1 month ago | ||
Installing the Toolset plugins from WP-Types doesn't work anymore?
Started by: Gerard in: Types Community Support |
2 | 7 | 7 years, 3 months ago |