avansisI-2
Support threads created in the last 30 days: 0
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Show image or button if there are content
Started by: avansisI-2 in: Toolset Professional Support |
2 | 11 | 4 years, 2 months ago | ||
Show all posts on personal area from a specific category selected by user on CTF
Started by: 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 | 4 years, 2 months ago | ||
I cant create custom type
Started by: avansisI-2 in: Toolset Professional Support |
2 | 13 | 4 years, 2 months ago | ||
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
Started by: 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 | 4 years, 2 months ago | ||
Create relationship between User and post using a proxy post type
1
2
Started by: avansisI-2 in: Toolset Professional Support |
2 | 26 | 4 years, 2 months ago | ||
Filter View by category in wp-admin
Started by: 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 | 4 years, 2 months ago | ||
not set in dropdown category
Started by: avansisI-2 in: Toolset Professional Support |
3 | 12 | 4 years, 2 months ago | ||
Create link to google maps from address field
Started by: 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 | 4 years, 2 months ago | ||
Url validate without http or https
Started by: avansisI-2
in: Toolset Professional Support
Problem: Is it possible that the url field does not require http or https to validate? Solution: Please check the URL definition: https://en.wikipedia.org/wiki/URL URI = scheme:[//authority]path[?query][#fragment] If you are using URL validation setting, then the "scheme" is required for URL value Relevant Documentation: |
2 | 3 | 4 years, 2 months ago | ||
Email notification doesnt work
Started by: avansisI-2 in: Toolset Professional Support |
1 | 2 | 4 years, 2 months ago | ||
Relationship in api rest
1
2
Started by: avansisI-2
in: Toolset Professional Support
Problem: I would like to add related parent post information to the response of a REST API endpoint for the child post type. Solution: Use the following custom code as a guide for adding related post information in a custom registered field in your REST API response for the child post type: add_action( 'rest_api_init', 'create_api_posts_meta_field_promociones'); function create_api_posts_meta_field_promociones() { register_rest_field( 'promociones', 'parent-page', array( 'get_callback' => 'get_parent_page_for_api_promociones', 'schema' => null, ) ); } function get_parent_page_for_api_promociones( $object ) { //get the id of the post object array $post_id = $object['id']; //return the related comercio post ID return toolset_get_related_post( $post_id, 'comercio_promocion', 'parent'); } Relevant Documentation: |
2 | 23 | 4 years, 2 months ago | ||
Limit the number of images in the custom field image gallery
Started by: avansisI-2 in: Toolset Professional Support |
2 | 7 | 4 years, 2 months ago | ||
I cant modified content template
Started by: avansisI-2 in: Toolset Professional Support |
3 | 14 | 4 years, 2 months ago | ||
I cant modified content template
Started by: avansisI-2 in: Toolset Professional Support |
2 | 14 | 4 years, 2 months ago | ||
Is it possible add google address coordinates in json?
Started by: avansisI-2
in: Toolset Professional Support
Problem: Is it possible add custom address field coordinates into REST API result in JSON format? Solution: Please try the function types_render_field(), for example: https://toolset.com/forums/topic/is-it-possible-add-google-address-coordinates-in-json/#post-1845587 Relevant Documentation: https://toolset.com/documentation/customizing-sites-using-php/functions/#address |
2 | 13 | 4 years, 2 months ago |