nicolaS-3
Support threads created in the last 30 days: 2
Favorite Forum Topics
This user has no favorite topics.
Forum Topics Created
Status | Topic | Supporter | Voices | Posts | Freshness |
---|---|---|---|---|---|
Question about sending views output to newsletter subscribers
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 10 | 4 years, 3 months ago | ||
Weird geolocalizations
Started by: nicolaS-3
in: Toolset Professional Support
Problem: Please help me understanding what's wrong with geolocalization, from my Android phone stores are the right local ones but distance calculation seems to be wrong in many cases。 Solution: Toolset Maps can only get the Straight line distance, but if in Google Maps, you will get Road distance, it conducts the issue you mentioned above. Relevant Documentation: |
2 | 5 | 4 years, 3 months ago | ||
Spinner is never displayed
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 7 | 4 years, 3 months ago | ||
“Not found” message in nested View
Started by: nicolaS-3
in: Toolset Professional Support
Problem: I have two nested Views set up to display a list of child posts. If no child posts are found, I would like to display "No items found" once. However, if I add the "No items found" message in the child View, it is repeated for each parent post. If I add it in the parent View, it is never shown because there are always parent posts. Solution: There is not a simple way to set this up because each child View is rendered independently of the other child Views. There is no built-in way to keep a running total of all child posts across the nested Views, so a custom code solution in the classic Views editor is required. You must use a custom shortcode to add the number 1 each time a child post is displayed. Then use a conditional to test the total amount after all the child post loops have run. First, add these two custom shortcodes in your child theme's functions.php file, or in a new custom code snippet in Toolset > Settings > Custom Code: // https://toolset.com/forums/topic/not-found-message/ global $total; function add_total_shortcode($atts, $content = '') { global $total; $total += wpv_do_shortcode($content); } add_shortcode('add-to-total', 'add_total_shortcode'); function show_total_shortcode( $atts, $content ) { global $total; $atts = shortcode_atts( array( 'decimals' => 0 ), $atts ); $totalNew = $total; $total = 0; return number_format($totalNew, (int) $atts['decimals'] ); } add_shortcode('show-total', 'show_total_shortcode'); Go to Toolset > Settings > Front-end Content and register show-total in Third-party shortcode arguments. In your child View, insert the following code somewhere inside the wpv-loop tags: [add-to-total]1[/add-to-total] Then in the parent View, insert the following conditional shortcode somewhere outside the wpv-loop tags but inside the wpv-items-found shortcode: [wpv-conditional if="( '[show-total][/show-total]' gte '1' )" evaluate="false"] There are NO child posts [/wpv-conditional] You may replace the text with your own custom message as needed. |
2 | 7 | 4 years, 4 months ago | ||
Cannot translate cred-form-cancel and cred-relationship-role
Started by: nicolaS-3
in: Toolset Professional Support
Problem: Translate cred-form-cancel and cred-relationship-role shortcodes. Solution: For the cancel link, you can customize the text and message with shortcode attribute: "label" and "message", for example: For the role cred-relationship-role shortcode, you can translate the texts with WP gettext filter hook, for example: Relevant Documentation: http://codex.wordpress.org/Plugin_API/Filter_Reference/gettext |
2 | 5 | 4 years, 4 months ago | ||
List of IDs as view input
1
2
Started by: nicolaS-3
in: Toolset Professional Support
Problem: Output post IDs as comma separated string. Solution: You can generate it using Views GUI, see screenshot: https://toolset.com/wp-content/uploads/2019/07/toolset-views-loop-wizard-layout-options.png Relevant Documentation: https://toolset.com/documentation/user-guides/views/view-layouts-101/ |
2 | 18 | 4 years, 5 months ago | ||
Taxonomy sorting issue
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 6 | 4 years, 5 months ago | ||
Distance from filter based on parent post address field – part II
1
2
…
4
5
Started by: nicolaS-3 in: Toolset Professional Support |
3 | 69 | 4 years, 6 months ago | ||
View not returning [wpv-no-items-found] output
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 7 | 4 years, 6 months ago | ||
No multiple filters for select fields ?
Started by: nicolaS-3
in: Toolset Professional Support
Problem: I cannot add a filter like "field is a number equal to 1 or 2". Solution: You can switch to "in" comparison. Relevant Documentation: https://toolset.com/documentation/user-guides/views/filtering-views-by-custom-fields/ |
2 | 5 | 4 years, 6 months ago | ||
Toolset/Avada conflict: Form editor
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 4 | 4 years, 7 months ago | ||
Sum of field part II
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 7 | 4 years, 8 months ago | ||
Standard WP fields not available in filter field list
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 5 | 4 years, 9 months ago | ||
Parent selection field, display post ID instead of titles in select
Started by: nicolaS-3
in: Toolset Professional Support
Problem: I have a Form that allows Users to create child posts. The Form contains a select field that allows the User to select a parent post in a one-to-many relationship. Instead of displaying the parent post title in each select field option, I would like to display the post ID. Or, I would like to automate the parent post title so that the title is the same as the post ID. Parent posts are also created by Forms. Solution: If you want to automatically set the parent post's title to be the same as its ID you could use the cred_save_data hook with your parent post Form. Remove the title field from the parent post Form first to prevent the User from submitting a title. Then use the cred_save_data hook and the wp_update_post API to programmatically set the post title. Relevant Documentation: |
2 | 3 | 4 years, 9 months ago | ||
My Account view showing too many users
Started by: nicolaS-3 in: Toolset Professional Support |
2 | 12 | 4 years, 9 months ago |