peterB-14
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 |
---|---|---|---|---|---|
Display selected checkboxes labels with PHP
Started by: peterB-14
in: Toolset Professional Support
Problem: I would like to use the PHP API to display selected checkboxes fields labels, not their values. Solution: Use the types_render_field function and the field settings "Show one of these two values:" echo types_render_field("your-checkboxes-field-slug"); Relevant Documentation: |
2 | 5 | 4 years, 11 months ago | ||
Types generating custom image sizes
Started by: peterB-14 in: Toolset Professional Support |
2 | 4 | 5 years, 3 months ago | ||
displaying taxonomy name or slug has a lot of extra spaces and line breaks
Started by: peterB-14 in: Toolset Professional Support |
1 | 1 | 5 years, 5 months ago | ||
Custom fields are not displaying in my custom post types.
Started by: peterB-14 in: Toolset Professional Support |
2 | 3 | 6 years, 8 months ago | ||
Cannot Sort Fields On Edit All Posts Dashboard Page (/wp-admin/edit.php)
Started by: peterB-14
in: Types Community Support
Problem: Sorting by date does not appear to work as expected in the wp-admin area for a custom post type. Solution: Adjust theme files if necessary to make sure Admin pages are not effected (!is_admin()) by sorting options set for the front-end. //Plants Archive Page Sorting function plants_archive_change_sort_order($query) { if (!is_admin() && is_post_type_archive('plants')) { //Set the order ASC or DESC $query->set( 'order', 'ASC' ); //Set the orderby $query->set( 'orderby', 'name' ); } } add_action( 'pre_get_posts', 'plants_archive_change_sort_order'); Relevant Documentation: |
3 | 11 | 6 years, 11 months ago |