georgiI
In den letzten 30 Tagen erstellte Support-Threads: 0
Lieblings-Forenthemen
This user has no favorite topics.
Forum Topics Created
| Status | Thema | Supporter | Stimmen | Artikel | Aktualität |
|---|---|---|---|---|---|
|
Attach other plugin custom post type with posts trough toolset
Gestartet von: 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 | vor 1 year, 9 months | |
|
Stored user data can't be edited during search view
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 9 | vor 1 year, 9 months | |
|
Split: User stored preference data, changes search results – generic field default value edit form
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 4 | vor 1 year, 10 months | |
|
User stored preference data, changes search results
1
2
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 17 | vor 1 year, 10 months | |
|
Conditional breaks view grid
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 9 | vor 1 year, 10 months | |
|
Exclude payed member subscriptions from toolset search
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 9 | vor 1 year, 10 months | |
|
Change "no file chosen" text
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 3 | vor 1 year, 10 months | |
|
Min/Max price search filter of custom price field
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 9 | vor 1 year, 10 months | |
|
Other plugin field as a search filter
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 7 | vor 1 year, 11 months | |
|
Include custom fields into toolset forms from other plugin
Gestartet von: georgiI in: Toolset Professional Support |
|
2 | 11 | vor 1 year, 11 months | |
|
Assign first uploaded image from repeating image field as featured
Gestartet von: 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 | vor 2 years | |
|
Assign first uploaded image from repeating image field as featured
Gestartet von: georgiI in: Toolset Professional Support |
1 | 3 | vor 2 years, 1 month |