Luit
In den letzten 30 Tagen erstellte Support-Threads: 1
Lieblings-Forenthemen
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
Gravity Forms Relationship Issue
Gestartet von: Dave in: Types Community Support |
2 | 6 | vor 11 Jahre, 9 Monate |
Forum Topics Created
Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
---|---|---|---|---|---|
wpv-login-form redirects to wp-login and not to the url set in the shortcode
Gestartet von: Luit in: Toolset Professional Support |
2 | 2 | vor 3 Wochen, 6 Tage | ||
How to display only the custom fields for 1 post
Gestartet von: Luit in: Toolset Professional Support |
1 | 1 | vor 1 Monat, 1 Woche | ||
I need some thoughts on filtering data
Gestartet von: Luit in: Toolset Professional Support |
2 | 11 | vor 3 Jahre, 1 Monat | ||
Delete child posts on deleting parent
Gestartet von: Luit
in: Toolset Professional Support
Problem: The issue here is that the user wanted to delete their child posts once the parent is deleted on the frontend. Solution: add_action( 'before_delete_post', 'ts_before_delete_post', 1, 2 ); function ts_before_delete_post( $post_id, $post ){ if ( $post->post_type == 'persoon' && $post->post_status == 'publish' ) { $children = toolset_get_related_posts( $post_id,'relatie_personen_phvs',array('query_by_role' => 'parent','role_to_return' => 'child')); if ( is_array( $children ) ) { foreach ($children as $key => $child) { wp_delete_post( $child, true ); } } } } Add it to your Toolset custom code settings in Toolset->Settings->Custom Code. Ensure that you have activated it. Next you will need to replace 'persoon' with the Parent Post type and "relatie_personen_phvs" with the post relationship slug. This will ensure that the child posts are deleted when the parent is deleted. Finally this will only work if the action of the toolset delete button is set to 'delete'. This will not work when it is set to 'trash' |
2 | 11 | vor 3 Jahre, 1 Monat | ||
uploading files
Gestartet von: Luit in: Toolset Professional Support |
2 | 3 | vor 3 Jahre, 2 Monate | ||
set variable with custom fields from child posts – comma separated and quotes
Gestartet von: Luit in: Toolset Professional Support |
2 | 9 | vor 3 Jahre, 2 Monate | ||
Calculate a sum from related/child posts
Gestartet von: Luit in: Chat Support |
1 | 2 |
vor 3 Jahre, 2 Monate
|
||
Calculate a sum from related/child posts
Gestartet von: Luit in: Chat Support |
1 | 4 |
vor 3 Jahre, 2 Monate
|
||
Create post title automatically based on custom field value
Gestartet von: Luit in: Toolset Professional Support |
2 | 2 | vor 3 Jahre, 2 Monate | ||
Get parent post id and meta field is not working in cred_save_data
Gestartet von: Luit
in: Toolset Professional Support
Problem: I have a Form that is used to create child post in a one-to-many post relationship. I would like to get the value of a custom field from the related parent post in a cred_save_data callback, but it does not seem to be working. Solution: The relationship is not yet set in a cred_save_data hook, so you can either use the cred_submit_complete hook instead, or access the parent post ID directly from the parent select field in the $_POST superglobal. $parent_post_id = $_POST['@relationshipslug_parent']; $parent_field_value = get_post_meta( $parent_post_id, 'wpcf-fieldslug', true); |
2 | 8 | vor 3 Jahre, 2 Monate | ||
Select categories and taxonomy based on url parameters
Gestartet von: Luit in: Toolset Professional Support |
2 | 3 | vor 3 Jahre, 3 Monate | ||
When CRED plugin is active I can not edit visual composer settings
Gestartet von: Luit in: Toolset Professional Support |
2 | 3 | vor 7 Jahre, 10 Monate | ||
establish relationship between 2 custom post types
Gestartet von: Luit in: Toolset Professional Support |
2 | 11 | vor 8 Jahre, 7 Monate | ||
how to establish a relationship afterwards
Gestartet von: Luit in: Toolset Professional Support |
2 | 4 | vor 8 Jahre, 7 Monate | ||
use more templates for one post
Gestartet von: Luit in: Toolset Professional Support |
2 | 3 | vor 8 Jahre, 7 Monate |