stephaneB-5
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 |
---|---|---|---|---|---|
populated custon meta-user with gravity check box values
Started by: stephaneB-5 in: Toolset Professional Support |
2 | 7 | 4 years, 1 month ago | ||
Custom field and sug
1
2
Started by: stephaneB-5 in: Toolset Professional Support |
2 | 21 | 5 years, 6 months ago | ||
Ordering with date fields
Started by: stephaneB-5 in: Toolset Professional Support |
2 | 9 | 5 years, 6 months ago | ||
time request
Started by: stephaneB-5 in: Toolset Professional Support |
2 | 7 | 5 years, 6 months ago | ||
How to automatically set a date field to the current date/time
1
2
3
Started by: stephaneB-5
in: Toolset Professional Support
Problem: Solution: An example (which updates two custom fields) is given below: https://toolset.com/forums/topic/automatic-filling-date-fields/#post-1251117 Note that a simpler implementation would be to just use the standard post_date field of the post published with the form. Relevant Documentation: |
3 | 37 | 5 years, 6 months ago | ||
Make addition with toolset
Started by: stephaneB-5
in: Toolset Professional Support
Problem: I have a custom field that stores a number. In a View of posts, I would like to display the custom field and calculate the sum of all custom fields. Solution: There's nothing built-in to Toolset that will help perform mathematical functions in Views like a spreadsheet. For very simple cases, you can follow these instructions: 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() { global $total; $totalNew = $total; $total = 0; return $totalNew; } add_shortcode('show-total', 'show_total_shortcode'); Go to Toolset > Settings > Front-end Content and enter show-total and add-to-total separately in the Third Party ShortCodes section. Use the ShortCodes in a View like this: <wpv-loop> [types field="your-numeric-field" output="raw"][/types] [add-to-total] [types field="your-numeric-field" output="raw"][/types] [/add-to-total] </wpv-loop> Total: [show-total] |
2 | 6 | 5 years, 9 months ago |