georgiI
Admite hilos creados en los últimos 30 días: 0
Debates favoritos del foro
Este usuario no tiene debates favoritos.
Temas del foro creados
| Status | Debate | Supporter | Voces | Mensajes | Caducidad |
|---|---|---|---|---|---|
|
Attach other plugin custom post type with posts trough toolset
Iniciado por: georgiI
en: 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, 9 months ago | |
|
Stored user data can't be edited during search view
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 9 | 1 year, 9 months ago | |
|
Split: User stored preference data, changes search results – generic field default value edit form
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 4 | 1 year, 10 months ago | |
|
User stored preference data, changes search results
1
2
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 17 | 1 year, 10 months ago | |
|
Conditional breaks view grid
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 9 | 1 year, 10 months ago | |
|
Exclude payed member subscriptions from toolset search
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 9 | 1 year, 10 months ago | |
|
Change "no file chosen" text
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 3 | 1 year, 10 months ago | |
|
Min/Max price search filter of custom price field
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 9 | 1 year, 10 months ago | |
|
Other plugin field as a search filter
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 7 | 1 year, 11 months ago | |
|
Include custom fields into toolset forms from other plugin
Iniciado por: georgiI en: Toolset Professional Support |
|
2 | 11 | 1 year, 11 months ago | |
|
Assign first uploaded image from repeating image field as featured
Iniciado por: georgiI
en: 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 | 2 years ago | |
|
Assign first uploaded image from repeating image field as featured
Iniciado por: georgiI en: Toolset Professional Support |
1 | 3 | 2 years, 1 month ago |