Luit
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
Status | Sujet | Supporter | Voix | Publications | Nouveauté |
---|---|---|---|---|---|
No display options available in edit form
Commencé par : Luit in: Toolset Professional Support |
|
2 | 7 | Il y a 1 année | |
wpv-login-form redirects to wp-login and not to the url set in the shortcode
Commencé par : Luit in: Toolset Professional Support |
|
2 | 2 | Il y a 1 année et 1 mois | |
How to display only the custom fields for 1 post
Commencé par : Luit in: Toolset Professional Support |
1 | 1 | Il y a 1 année et 2 mois | ||
I need some thoughts on filtering data
Commencé par : Luit in: Toolset Professional Support |
|
2 | 11 | Il y a 4 années et 2 mois | |
Delete child posts on deleting parent
Commencé par : 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 | Il y a 4 années et 2 mois | |
uploading files
Commencé par : Luit in: Toolset Professional Support |
|
2 | 3 | Il y a 4 années et 2 mois | |
set variable with custom fields from child posts – comma separated and quotes
Commencé par : Luit in: Toolset Professional Support |
|
2 | 9 | Il y a 4 années et 3 mois | |
Calculate a sum from related/child posts
Commencé par : Luit in: Chat Support |
|
1 | 2 |
Il y a 4 années et 3 mois
|
|
Calculate a sum from related/child posts
Commencé par : Luit in: Chat Support |
|
1 | 4 |
Il y a 4 années et 3 mois
|
|
Create post title automatically based on custom field value
Commencé par : Luit in: Toolset Professional Support |
|
2 | 2 | Il y a 4 années et 3 mois | |
Get parent post id and meta field is not working in cred_save_data
Commencé par : 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 | Il y a 4 années et 3 mois | |
Select categories and taxonomy based on url parameters
Commencé par : Luit in: Toolset Professional Support |
|
2 | 3 | Il y a 4 années et 4 mois |