richardW-6
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 |
---|---|---|---|---|---|
database structure
Started by: richardW-6 in: Toolset Professional Support |
2 | 2 | 3 years ago | ||
Sort output by order of a select field
Started by: richardW-6 in: Toolset Professional Support |
2 | 9 | 5 years, 3 months ago | ||
Sort output by order of a select field
1
2
Started by: richardW-6 in: Toolset Professional Support |
2 | 19 | 5 years, 4 months ago | ||
Number of entries in a select-field
Started by: richardW-6
in: Toolset Professional Support
Problem: I would like to get the number of options in a custom select field. Solution: Add this custom shortcode to your child theme's functions.php file, or create a new snippet in Toolset > Settings > Custom Code: function select_options_count_func( $atts ) { extract( shortcode_atts( array( 'field' => '', ), $atts ) ); $fields = get_option('wpcf-fields'); $res = ''; if(isset($fields[$field]['data']['options'])) { $res = count($fields[$field]['data']['options']) - 1; } return $res ; } add_shortcode( 'select_options_count', 'select_options_count_func' ); Now if you want to display the number of options for a select field with the slug "day-of-the-week", use the shortcode like this: [select_options_count field="day-of-the-week"][/select_options_count] |
2 | 5 | 5 years, 5 months ago | ||
Fields cannot be saved
Started by: richardW-6 in: Toolset Professional Support |
2 | 5 | 5 years, 5 months ago | ||
Which db-tables do i have to change when going live to update the urls? Plugins?
Started by: richardW-6 in: Toolset Professional Support |
2 | 2 | 7 years, 5 months ago | ||
The output of the template adds some p-Tags that crash my layout.
Started by: richardW-6 in: Toolset Professional Support |
3 | 14 | 7 years, 8 months ago | ||
Sorting of custom post-types in the backend is not available when hirarchial
Started by: richardW-6 in: Toolset Professional Support |
2 | 3 | 7 years, 9 months ago |