culturaI
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 |
---|---|---|---|---|---|
2 same mandatory field in the same cred
Started by: culturaI
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution in this case with the following reply: Relevant Documentation: |
2 | 9 | 6 years, 1 month ago | ||
Shortcode for sums calculated for all pages
Started by: culturaI in: Toolset Professional Support |
2 | 3 | 6 years, 2 months ago | ||
Filter nested View of child posts in a parent View
Started by: culturaI
in: Toolset Professional Support
Problem: I would like to create a View of parent posts and add a nested View of child posts. I would like to include custom field filters on the front-end so Users can filter both parent and child posts. Solution: It's not currently easy to accomplish this type of nested View with custom field filters applied to both post types. We expect to add more robust related post filters in an upcoming release. |
2 | 7 | 6 years, 2 months ago | ||
Display sum of [wpv-found-count] child post
Started by: culturaI in: Toolset Professional Support |
2 | 2 | 6 years, 2 months ago | ||
Import posts with CSV
Started by: culturaI
in: Toolset Professional Support
Problem: Solution: |
2 | 4 | 6 years, 7 months ago | ||
Filter grouping multiple values in a single selection
Started by: culturaI in: Toolset Professional Support |
2 | 3 | 6 years, 10 months ago | ||
enable text mode in data picker
Started by: culturaI
in: Toolset Professional Support
Problem: Solution: So - its not feasible to use textual date format. Relevant Documentation: |
2 | 3 | 6 years, 10 months ago | ||
Update parent field after checking others child fields
Started by: culturaI
in: Toolset Professional Support
Problem: parent post type: "contatto" with types custom field "data-inizio-ultimo-corso" when submitting a new "corso", i'm updating "data-inizio-ultimo -corso" if date greater, using this function: //DATA INIZIO ULTIMO CORSO function inserisce_data_inizio_ultimo_corso( $post_ID ) { if ( get_post_type( $post_ID ) == 'corso' ) { $data_inizio_corso_inserito_timestamp = get_post_meta($post_ID, 'wpcf-data-inizio-corso', true); $contatto_id = get_post_meta($post_ID, '_wpcf_belongs_contatto_id', true); $data_inizio_corso_attuale_timestamp = get_post_meta( $contatto_id, 'wpcf-data-inizio-ultimo-corso', true ); if ( $data_inizio_corso_inserito_timestamp > $data_inizio_corso_attuale_timestamp) {update_post_meta( $contatto_id, 'wpcf-data-inizio-ultimo-corso', $data_inizio_corso_inserito_timestamp );} } } add_action( 'save_post', 'inserisce_data_inizio_ultimo_corso', 99 ); Solution: I assume you are going to check other child "corso" posts of same parent "contatto" post, in your PHP codes. In your PHP codes, you can get the parent "contatto" post ID by this: With the "contatto" post ID, you can get all the child "corso" posts with wordpress function get_posts(), by the custom field "_wpcf_belongs_contatto_id", see our document: section "Example of a custom query for displaying child posts" Relevant Documentation: |
2 | 5 | 6 years, 10 months ago | ||
cred module restrict date range
Started by: culturaI
in: Toolset Professional Support
Problem: Solution: You can find proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 13 | 6 years, 10 months ago | ||
Copy child date custom field to parent date custom field
Started by: culturaI
in: Toolset Professional Support
Problem: I would like to use the save_post hook to update a parent's date field when a child post is saved, but only if the child's date field is a later date. Solution: //DATA FINE ULTIMO CORSO function inserisce_data_fine_ultimo_corso( $post_ID ) { if ( get_post_type( $post_ID ) == 'corso' ) { $data_fine_corso_inserito_timestamp = get_post_meta($post_ID, 'wpcf-data-fine-corso', true); $contatto_id = get_post_meta($post_ID, '_wpcf_belongs_contatto_id', true); $data_fine_corso_attuale_timestamp = get_post_meta( $contatto_id, 'wpcf-data-fine-ultimo-corso', true ); if ( $data_fine_corso_inserito_timestamp > $data_fine_corso_attuale_timestamp) {update_post_meta( $contatto_id, 'wpcf-data-fine-ultimo-corso', $data_fine_corso_inserito_timestamp );} } } add_action( 'save_post', 'inserisce_data_fine_ultimo_corso', 99 ); |
2 | 3 | 6 years, 11 months ago | ||
Query filter relationship
Started by: culturaI in: Toolset Professional Support |
3 | 8 | 6 years, 11 months ago | ||
Query filter relationship 2
Started by: culturaI in: Toolset Professional Support |
2 | 2 | 6 years, 11 months ago | ||
Display search results only after search
Started by: culturaI
in: Toolset Professional Support
Problem: The issue here is that the user only wants to display his search results only after a search has been made. Solution: Take a look at this screenshot below. |
2 | 9 | 6 years, 11 months ago | ||
Hide Nav Menu items or pages
Started by: culturaI in: Toolset Professional Support |
2 | 3 | 6 years, 11 months ago | ||
Update types custom field in parent post from custom field in child post
Started by: culturaI
in: Toolset Professional Support
Problem: I have: I would like that when filled "data-inizio-corso" the value is copied in "data-ultimo-corso" updating or creating the post. Solution: Types plugin is using a custom field "_wpcf_belongs_[parent-slug]_id" to store the parent post ID, for example, if the parent post type is using slug "contatto", then in single child "corso" post, there is a hidden field "_wpcf_belongs_contatto_id", the filed value is parent post ID, so if "$post_ID" is a child "corso" post ID, you can get the parent "contatto" post ID with PHP codes: $contatto_id = get_post_meta($post_ID, '_wpcf_belongs_contatto_id', true); Then use the $contatto_id to update the custom field "data-ultimo-corso" to what you want. Relevant Documentation: |
2 | 4 | 6 years, 11 months ago |