Luit
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
No display options available in edit form
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 7 | 1 years, 5 months ago | |
wpv-login-form redirects to wp-login and not to the url set in the shortcode
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 2 | 1 years, 6 months ago | |
How to display only the custom fields for 1 post
Iniciado por: Luit en: Toolset Professional Support |
1 | 1 | 1 years, 6 months ago | ||
I need some thoughts on filtering data
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 11 | 4 years, 6 months ago | |
Delete child posts on deleting parent
Iniciado por: Luit
en: 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 | 4 years, 6 months ago | |
uploading files
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 3 | 4 years, 7 months ago | |
set variable with custom fields from child posts – comma separated and quotes
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 9 | 4 years, 7 months ago | |
Calculate a sum from related/child posts
Iniciado por: Luit en: Chat Support |
|
1 | 2 |
4 years, 7 months ago
|
|
Calculate a sum from related/child posts
Iniciado por: Luit en: Chat Support |
|
1 | 4 |
4 years, 7 months ago
|
|
Create post title automatically based on custom field value
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 2 | 4 years, 7 months ago | |
Get parent post id and meta field is not working in cred_save_data
Iniciado por: Luit
en: 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 | 4 years, 7 months ago | |
Select categories and taxonomy based on url parameters
Iniciado por: Luit en: Toolset Professional Support |
|
2 | 3 | 4 years, 8 months ago |