avansisI-2
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é |
---|---|---|---|---|---|
Generate a random number and letters in custom field
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: Use cred_save_data action hook to update a custom field value. Solution: You can try these: 1) Create a post form for editing post, so you will can setup submit button in the form 2) Create another custom codes, use update_post_meta() to update the custom field value, for example: https://toolset.com/forums/topic/generate-a-random-number-and-letters-in-custom-field/#post-1856061 Relevant Documentation: https://developer.wordpress.org/reference/functions/wp_update_post/ https://developer.wordpress.org/reference/functions/wp_update_post/#user-contributed-notes |
|
2 | 8 | Il y a 4 années et 2 mois | |
link to whatsapp app with custom field
Commencé par : avansisI-2 in: Soporte profesional de Toolset |
|
2 | 3 | Il y a 4 années et 2 mois | |
Create different relationshop with same custom type
Commencé par : avansisI-2 in: Soporte profesional de Toolset |
|
2 | 2 | Il y a 4 années et 2 mois | |
Disable block editor for specific role
Commencé par : avansisI-2 in: Chat Support |
|
1 | 2 |
Il y a 4 années et 2 mois
|
|
CC on messages sended with Messages Module
Commencé par : avansisI-2
in: Soporte profesional de Toolset
Problem: I need to send a copy of the messages sent with Messages Module, copied to a specific user. Solution: There are two post forms within Messages Module: - New message - Reply message you can find and edit them here: Dashboard-> Toolset-> Post Forms Then follow our document to add the messages notification recipients: Relevant Documentation: https://toolset.com/course-lesson/send-notifications-when-someone-submits-the-form/ |
|
2 | 7 | Il y a 4 années et 2 mois | |
Status expired when 2 days have passed from the date of creation
1
2
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: After two days have passed from the time of post creation, I would like to display some text on my post that says the post has expired. Solution: Use two separate custom date fields to store the post creation timestamp and the post expiration timestamp. Use a custom function or custom shortcode to compare the expiration timestamp with the current timestamp. The following code example shows how to set the two requested custom field values: //FECHA AUTOMÁTICA BONOS add_action( 'save_post', 'tssupp_auto_set_date_fields', 100, 3 ); function tssupp_auto_set_date_fields( $bonos, $post, $update ) { $post_type = 'bonos'; $created_field_slug = 'fecha-de-creacion-del-bono'; // edit your created field slug here $expiration_field_slug = 'fecha-de-caducidad'; // edit your expiration field slug here // do not edit below this line $created_field_value = get_post_meta($bonos, 'wpcf-' . $created_field_slug, true); $expiration_field_value = get_post_meta($bonos, 'wpcf-' . $expiration_field_slug, true); if ( $post->post_status == 'publish' && $post->post_type == $post_type && !$created_field_value ) { update_post_meta( $bonos, 'wpcf-' . $created_field_slug, date('U') ); } if ( $post->post_status == 'publish' && $post->post_type == $post_type && !$expiration_field_value ) { update_post_meta( $bonos, 'wpcf-' . $expiration_field_slug, (date('U') + 172800) ); } } |
|
2 | 19 | Il y a 4 années et 2 mois | |
Show image or button if there are content
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 11 | Il y a 4 années et 2 mois | |
Show all posts on personal area from a specific category selected by user on CTF
Commencé par : avansisI-2
in: Soporte profesional de Toolset
Problem: Solution: Check this sample code: add_filter( 'wpv_filter_query', 'posts_from_user_taxonomy_terms',99,3 ); function posts_from_user_taxonomy_terms( $query_args,$views_settings, $view_id) { if ($view_id == 833){ // replace this with the view's ID $user_posts = get_posts( array( 'author' => get_current_user_id(), 'fields' => 'ids', 'post_type' => array('evento', 'empresa'), 'posts_per_page' => -1 ) ); $terms = get_terms( array( 'taxonomy' => 'category', 'object_ids' => $user_posts, ) ); $terms_ids = array(); foreach($terms as $term) { $terms_ids[] = $term->term_id; } $query_args['tax_query'] = array( array( 'taxonomy' => 'category', 'terms' => $terms_ids, ), ); } return $query_args; } Relevant Documentation: |
|
2 | 13 | Il y a 4 années et 2 mois | |
Toolset chat support ticket by avansisI-2 – 1606165842
Commencé par : avansisI-2 in: Chat Support |
|
1 | 2 |
Il y a 4 années et 2 mois
|
|
I cant create custom type
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 13 | Il y a 4 années et 2 mois | |
I can set in a view, with the block editor I can set a maximum height , and not a width? so the images are resized
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I would like to display an image using a Toolset Image Block in the loop of a View. The loop has 3 columns, and I would like the image to fill the width of one of the columns. Solution: Be sure to select an image size that is large enough to fill the available space, then use the Display Width and Display Height settings to provide a percentage-based width and height value. |
|
2 | 5 | Il y a 4 années et 2 mois | |
Create relationship between User and post using a proxy post type
1
2
Commencé par : avansisI-2 in: Toolset Professional Support |
|
2 | 26 | Il y a 4 années et 2 mois | |
Filter View by category in wp-admin
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I have a View that displays posts. I would like to display only those posts in a specific subcategory. Solution: Use the Query Filter panel to add a taxonomy term Query Filter. If the View is built in the Block Editor, you must select the top-level View block. You can use the Block Navigator menu if necessary to select the correct block. Then Query Filter options will appear in the Content Selection block configurations panel. If the View is built in the legacy Views editor, you can expose the Query Filter panel in Screen Options. Relevant Documentation: |
|
2 | 7 | Il y a 4 années et 2 mois | |
not set in dropdown category
Commencé par : avansisI-2 in: Toolset Professional Support |
|
3 | 12 | Il y a 4 années et 2 mois | |
Create link to google maps from address field
Commencé par : avansisI-2
in: Toolset Professional Support
Problem: I would like to create an external link to the Google Maps site that loads a map to an address stored in a custom address field. Solution: Use the following custom code to create a custom link tag: <a href="https://www.google.com/maps/place/[types field='direccion_comercio' output='raw'][/types]/" title="IR AL COMERCIO">IR AL COMERCIO</a> Relevant Documentation: |
|
2 | 8 | Il y a 4 années et 2 mois |