diyanK
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é |
---|---|---|---|---|---|
Latest versions break file upload via toolset forms on front-end
Commencé par : diyanK in: Toolset Professional Support |
2 | 2 | Il y a 1 année | ||
Sorting a classic view table layout using a child post's Date custom field value
Commencé par : diyanK in: Toolset Professional Support |
2 | 3 | Il y a 1 année et 8 mois | ||
Use my location stopped working
Commencé par : diyanK in: Toolset Professional Support |
2 | 3 | Il y a 1 année et 9 mois | ||
Update-able web app distibution
Commencé par : diyanK in: Toolset Professional Support |
3 | 7 | Il y a 1 année et 9 mois | ||
Change relationships per page in wp-admin
Commencé par : diyanK in: Toolset Professional Support |
2 | 4 | Il y a 2 années et 2 mois | ||
Add custom field value to View Loop item contener
Commencé par : diyanK in: Toolset Professional Support |
2 | 7 | Il y a 2 années et 2 mois | ||
Turn off automatic live preview for Toolset in Gutenberg
Commencé par : diyanK in: Toolset Professional Support |
2 | 2 | Il y a 2 années et 2 mois | ||
Post Date field doesn’t output date format according to Site Language setting.
Commencé par : diyanK
in: Toolset Professional Support
Problem: Solution: [wpv-post-date format="F j Y"] Relevant Documentation: |
2 | 3 | Il y a 2 années et 6 mois | ||
Record post relationship changes
Commencé par : diyanK in: Toolset Professional Support |
2 | 6 | Il y a 2 années et 6 mois | ||
CRED Form returning AJAX Request Failed!
1
2
Commencé par : diyanK in: Toolset Professional Support |
2 | 20 | Il y a 3 années et 9 mois | ||
Random order in a View/Block Editor/ creates a server feed loop.
Commencé par : diyanK
in: 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 | Il y a 3 années et 10 mois | ||
CRED checkbox validation fails after WP 5.6 update
Commencé par : diyanK in: Toolset Professional Support |
2 | 5 | Il y a 3 années et 10 mois | ||
Content template "View with" issue
Commencé par : diyanK in: Toolset Professional Support |
2 | 6 | Il y a 3 années et 12 mois | ||
Delete related posts and their attachments when deleting parent post with cred-delete-post shortcode
Commencé par : diyanK
in: 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 | Il y a 4 années | ||
CRED custom taxonomy select option – empty items disappeared
Commencé par : diyanK in: Toolset Professional Support |
1 | 2 | Il y a 4 années |