georgiI
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 |
|---|---|---|---|---|---|
|
Attach other plugin custom post type with posts trough toolset
Started by: georgiI
in: Toolset Professional Support
Problem: The customer is working on a website with two different types of listings—one created using another plugin and the other using Toolset. They wanted to know if it is possible for both custom post types (CPTs) to share the same fields and taxonomies, which are currently attached only to the custom post type created by the other plugin. Solution: We clarified that if the customer wants to have identical CPTs in both Toolset and another plugin, it might be best to convert the existing types and fields so that Toolset manages them, ensuring everything is centralized in one place. We provided a link to the relevant documentation for converting existing types and fields to Toolset control. Additionally, we mentioned that in some cases, it is possible to use custom fields in Toolset even if they are not managed by Toolset, but this would need to be checked on a case-by-case basis. Relevant Documentation: https://toolset.com/course-lesson/convert-existing-custom-types-and-fields-to-types-control/ |
|
2 | 3 | 1 year, 7 months ago | |
|
Stored user data can't be edited during search view
Started by: georgiI in: Toolset Professional Support |
|
2 | 9 | 1 year, 7 months ago | |
|
Split: User stored preference data, changes search results – generic field default value edit form
Started by: georgiI in: Toolset Professional Support |
|
2 | 4 | 1 year, 7 months ago | |
|
User stored preference data, changes search results
1
2
Started by: georgiI in: Toolset Professional Support |
|
2 | 17 | 1 year, 7 months ago | |
|
Conditional breaks view grid
Started by: georgiI in: Toolset Professional Support |
|
2 | 9 | 1 year, 8 months ago | |
|
Exclude payed member subscriptions from toolset search
Started by: georgiI in: Toolset Professional Support |
|
2 | 9 | 1 year, 8 months ago | |
|
Change "no file chosen" text
Started by: georgiI in: Toolset Professional Support |
|
2 | 3 | 1 year, 8 months ago | |
|
Min/Max price search filter of custom price field
Started by: georgiI in: Toolset Professional Support |
|
2 | 9 | 1 year, 8 months ago | |
|
Other plugin field as a search filter
Started by: georgiI in: Toolset Professional Support |
|
2 | 7 | 1 year, 8 months ago | |
|
Include custom fields into toolset forms from other plugin
Started by: georgiI in: Toolset Professional Support |
|
2 | 11 | 1 year, 9 months ago | |
|
Assign first uploaded image from repeating image field as featured
Started by: georgiI
in: Toolset Professional Support
Problem: How to set the first uploaded image of a front end form which is a repeating field without using the WordPress Media library mode to be the posts featured image? Solution: Add the custom code below to Toolset:
add_action( 'cred_save_data', 'tssupp_make_featured_image', 10, 2 );
function tssupp_make_featured_image( $post_id, $form_data ){
$image_field = 'pictures'; // edit field slug
if ( in_array( $form_data['id'], array( 123 ) ) ) { // edit form ID
// get the images
$images = get_post_meta( $post_id, 'wpcf-'.$image_field, false );
// get the attachment ID of the first image
if ( is_array($images) ){
$first = attachment_url_to_postid( $images[0] );
if ( $first > 0 ){
// set the featured image
update_post_meta( $post_id, '_thumbnail_id', $first );
// delete the first custom field image
delete_post_meta( $post_id, 'wpcf-'.$image_field, $images[0] );
}
}
}
}
Replace "id" with the form ID and replace "pictures" with the repeating custom field that you use for the images.
|
|
2 | 12 | 1 year, 10 months ago | |
|
Assign first uploaded image from repeating image field as featured
Started by: georgiI in: Toolset Professional Support |
1 | 3 | 1 year, 11 months ago |