avansisI-2
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 |
---|---|---|---|---|---|
Generate a random number and letters in custom field
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
link to whatsapp app with custom field
Iniciado por: avansisI-2 en: Soporte profesional de Toolset |
2 | 3 | hace 4 años, 2 meses | ||
Create different relationshop with same custom type
Iniciado por: avansisI-2 en: Soporte profesional de Toolset |
2 | 2 | hace 4 años, 2 meses | ||
Disable block editor for specific role
Iniciado por: avansisI-2 en: Chat Support |
1 | 2 |
hace 4 años, 2 meses
|
||
CC on messages sended with Messages Module
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
Status expired when 2 days have passed from the date of creation
1
2
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
Show image or button if there are content
Iniciado por: avansisI-2 en: Toolset Professional Support |
2 | 11 | hace 4 años, 2 meses | ||
Show all posts on personal area from a specific category selected by user on CTF
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
Toolset chat support ticket by avansisI-2 – 1606165842
Iniciado por: avansisI-2 en: Chat Support |
1 | 2 |
hace 4 años, 2 meses
|
||
I cant create custom type
Iniciado por: avansisI-2 en: Toolset Professional Support |
2 | 13 | hace 4 años, 2 meses | ||
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
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
Create relationship between User and post using a proxy post type
1
2
Iniciado por: avansisI-2 en: Toolset Professional Support |
2 | 26 | hace 4 años, 2 meses | ||
Filter View by category in wp-admin
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses | ||
not set in dropdown category
Iniciado por: avansisI-2 en: Toolset Professional Support |
3 | 12 | hace 4 años, 2 meses | ||
Create link to google maps from address field
Iniciado por: avansisI-2
en: 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 | hace 4 años, 2 meses |