ericE-4
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 |
---|---|---|---|---|---|
How to use [toolset-maps-distance-value] shortcode
Started by: ericE-4 in: Toolset Professional Support |
2 | 11 | 5 years, 4 months ago | ||
How to count number of selected checkboxes inside a nested repeatable group
1
2
Started by: ericE-4 in: Toolset Professional Support |
3 | 18 | 5 years, 4 months ago | ||
Conditional output involving count of images in a repeating field not working
Started by: ericE-4
in: Toolset Professional Support
Problem: Count custom repeating field number with custom codes. Solution: It needs custom codes, for example: Relevant Documentation: |
2 | 9 | 5 years, 4 months ago | ||
Can’t get repeatable group to output data
Started by: ericE-4
in: Toolset Professional Support
Problem: I have an RFG that includes another nested RFG, but I'm having trouble showing fields from both RFGs in a View. Solution: Use post relationship query filters and the Post Selection tab to create Views that display custom fields from all the different levels of hierarchy. Relevant Documentation: |
2 | 11 | 5 years, 4 months ago | ||
Can't get nested repeatable groups to display properly
Started by: ericE-4 in: Toolset Professional Support |
2 | 12 | 5 years, 5 months ago | ||
Count number of entries in repeating field, doesn’t work if there are no entries
Started by: ericE-4
in: Toolset Professional Support
Problem: I have a custom field that allows multiple values. I need to be able to count how many items exist in that custom field in each post, so I created a custom shortcode. However, it doesn't seem to work accurately when no items exist. It returns 1 instead of 0. Solution: In a basic case the following code will work, but if you leave the first instance blank and add content in the following instances, this code will not work. You'll need to add additional logic to handle those cases. add_shortcode('count_videos', 'count_videos_func'); function count_videos_func($atts, $content){ $atts = shortcode_atts( array( 'field' => '', 'post_id' => get_the_ID(), ), $atts ); $field = get_post_meta($atts['post_id'], $atts['field'], false); $res = 0; if(is_array($field) && $field[0] != ''){ $res = count($field); } return $res; } |
2 | 3 | 5 years, 5 months ago | ||
best way to manipulate content template output?
Started by: ericE-4
in: Toolset Professional Support
Problem: I have 3 custom fields that I would like to show in a post. Some fields may not contain a value in all posts. I would like to display these field values inline, separated by a comma, but I don't want to show a comma at the end of the list and I don't want to show commas for empty items. How can I filter the content template so this displays correctly? Solution: You could use PHP to filter the Content Template using the Views API filter wpv_filter_content_template_output, but it's not much simpler or cleaner. You could try a CSS-based solution with an nth-child or first-of-type pseudo selector controlling the :before content of each element. Relevant Documentation: |
2 | 3 | 5 years, 5 months ago | ||
How to display the content of custom fields on a page using Elementor HTML widget
Started by: ericE-4
in: Toolset Professional Support
Problem: I would like to display a tel: link using a phone number stored in a custom field, but it doesn't seem to work in an Elementor template with an HTML widget. Solution: For best compatibility, use a basic text widget in your Elementor template instead of an HTML or shortcode widget. |
2 | 3 | 5 years, 5 months ago | ||
CAn’t get repeating field to output in a loop
Started by: ericE-4
in: Toolset Professional Support
Problem: Solution: You can find the proposed solution, in this case, with the following reply: Relevant Documentation: |
2 | 9 | 5 years, 5 months ago | ||
JS errors and Elementor widget panel won't load when Toolset plugins are active
1
2
Started by: ericE-4 in: Toolset Professional Support |
2 | 24 | 5 years, 5 months ago |