diyanK
Admite hilos creados en los últimos 30 días: 1
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
Status | Debate | Supporter | Voces | Mensajes | Caducidad |
---|---|---|---|---|---|
Slider and Gallery blocks not working as expected with dynamic source.
Iniciado por: diyanK en: Toolset Professional Support |
|
1 | 7 | hace 1 día, 1 hora | |
Latest versions break file upload via toolset forms on front-end
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 2 | hace 1 año, 3 meses | |
Sorting a classic view table layout using a child post's Date custom field value
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 3 | hace 1 año, 11 meses | |
Use my location stopped working
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 3 | hace 1 año, 12 meses | |
Update-able web app distibution
Iniciado por: diyanK en: Toolset Professional Support |
|
3 | 7 | hace 2 años | |
Change relationships per page in wp-admin
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 4 | hace 2 años, 5 meses | |
Add custom field value to View Loop item contener
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 7 | hace 2 años, 5 meses | |
Turn off automatic live preview for Toolset in Gutenberg
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 2 | hace 2 años, 5 meses | |
Post Date field doesn’t output date format according to Site Language setting.
Iniciado por: diyanK
en: Toolset Professional Support
Problem: Solution: [wpv-post-date format="F j Y"] Relevant Documentation: |
|
2 | 3 | hace 2 años, 8 meses | |
Record post relationship changes
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 6 | hace 2 años, 9 meses | |
CRED Form returning AJAX Request Failed!
1
2
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 20 | hace 4 años | |
Random order in a View/Block Editor/ creates a server feed loop.
Iniciado por: diyanK
en: Toolset Professional Support
Problem: Setting random order in a View block causes constant updates in wp-admin editor page. Solution: Update to the latest version of Blocks/Views to get the fix for this issue. |
|
3 | 14 | hace 4 años, 1 mes | |
CRED checkbox validation fails after WP 5.6 update
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 5 | hace 4 años, 1 mes | |
Content template "View with" issue
Iniciado por: diyanK en: Toolset Professional Support |
|
2 | 6 | hace 4 años, 2 meses | |
Delete related posts and their attachments when deleting parent post with cred-delete-post shortcode
Iniciado por: diyanK
en: Toolset Professional Support
Problem: I would like to use a cred-delete-post shortcode to allow my visitors to delete a post on the front-end of the site. This post may be the parent of one or more child posts. When the parent post is deleted, I would like to delete its attachments, and its child posts as well as their attachments. Solution: Use the 'delete' action in the cred-delete-post shortcode, and customize the following code snippet to work with your post type slugs and post relationship slug. function delete_post_children($post_id) { global $wpdb; $post_type = get_post_type( $post_id ); if ( $post_type == 'products' || $post_type == 'profile') { $ids = $wpdb->get_col("SELECT ID FROM {$wpdb->posts} WHERE post_parent = $post_id AND post_type = 'attachment'"); foreach ( $ids as $id ) { wp_delete_attachment($id, true); } if(has_post_thumbnail( $post_id )) { $tn_id = get_post_thumbnail_id( $post_id ); wp_delete_attachment($tn_id, true); } if( $post_type == 'profile' ) { // in this case, we want to force-delete the child product posts as well $profile_products = toolset_get_related_posts( $post_id, 'profile-product', [ 'query_by_role' => 'parent', 'role_to_return' => 'child', 'limit' => 10000, 'orderby' => null, ] ); foreach($profile_products as $profile_product ) { wp_delete_post( $profile_product, true ); } } } } add_action('before_delete_post', 'delete_post_children'); Relevant Documentation: |
|
2 | 12 | hace 4 años, 3 meses |