danM-7
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 |
---|---|---|---|---|---|
CSS Styling CRED Forms
Started by: danM-7
in: Toolset Professional Support
Problem: I would like to change the width of a CRED input field using CSS. Solution: Use the CSS attribute selector syntax to find the input field with the name "wpcf-" plus the field slug: input[name="wpcf-middle-initial"] { width: 40px; /* change this width to suit your needs */ } Relevant Documentation: |
2 | 6 | 6 years ago | ||
Templates Terminology
Started by: danM-7
in: Toolset Professional Support
Problem: 2. In the Dashboard, under Toolset, "Layouts" lists "Layouts being used as templates for post types". Are those "Template Layouts"? 3. In the Dashboard, under Toolset, it lists "Content Templates". Are those what is meant by "Views Content Templates"? Solution: 2. That's correct. 3. Yes, that's correct as well. In general, Content Templates don't apply to entire post types or archives when you're using the Layouts plugin. They would mainly be utilized in individual Views' Loop Outputs in this case. If Layouts is not active, then Content Templates can apply to entire post types or archives, or to individual Views Loop Outputs. |
2 | 3 | 6 years, 6 months ago | ||
Edit parent post Taxonomy terms from child post CRED
Started by: danM-7
in: Toolset Professional Support
Problem: I would like to modify the terms associated with a parent post when a child post is added or modified using CRED. Solution: Use the cred_save_data hook and wp_set_object_terms to manipulate the parent post. add_action('cred_save_data_12345', 'set_parent_tutor_term_from_child',100,2); function set_parent_tutor_term_from_child($post_id, $form_data) { $taxonomy = 'tutor-status'; $tag = array( 'tutor-term-slug' ); $parent_id = get_post_meta($postid, '_wpcf_belongs_tutorslug_id', true); wp_set_object_terms( $parent_id, $tag, $taxonomy, true ); } Change 12345 to match your CRED form ID, change tutor-status to match your Tutor Status taxonomy slug, change tutor-term-slug to match the term slug you want to associate with the parent post, and change tutorslug to match your tutor post type slug. Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
2 | 3 | 6 years, 7 months ago | ||
Date fields stopped working
Started by: danM-7 in: Toolset Professional Support |
2 | 13 | 6 years, 8 months ago | ||
Setup post title from custom fields
Started by: danM-7
in: Toolset Professional Support
Problem: Solution: For example, when user save a "Volunteers" post, use action save_post to trigger a custom PHP function, in this function get the value of "Last Name, First Name" use those values to update the post title to what you want Relevant Documentation: |
5 | 7 | 6 years, 8 months ago |