Fred Konings
Fils de soutien créés au cours des 30 derniers jours : 0
Sujets de forum favoris
This user has no favorite topics.
Sujets de forum créés
| Status | Topic | Supporter | Voix | Publications | Nouveauté |
|---|---|---|---|---|---|
|
Unable to set lenght of Excerp (Count Length By characters)
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 4 |
Il y a 2 years, 2 months
- |
|
|
How to validate number field (10 digits, starting with '06') using preg_match
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 2 |
Il y a 2 years, 3 months
- |
|
|
Error-message: "You cannot upload a file of this size"
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 7 |
Il y a 2 years, 9 months
- |
|
|
Save/Update the featured image title with the post title
Commencé par : Fred Konings
in: Toolset Professional Support
Problem: How to set the uploaded image title in the form same as the created post title. Solution: Add the custom code below: [php]
function update_featured_image_title_foto( $post_id, $form_data ) {
// Check form being used, else do nothing
if ( $form_data[ 'id' ] == 485 ) {
// get post title
$custom_image_title = esc_html( get_the_title($post_id) );
// get featured image ID
$featured_image_id = get_post_thumbnail_id($post_id);
// update post_title
$updated_image_data = array(
'ID' => $featured_image_id,
'post_title' => $custom_image_title,
);
// Update the field(s)
wp_update_post($updated_image_data);
}
}
add_action( 'cred_save_data', 'update_featured_image_title_foto', 15, 2 );
[/php]
Relevant Documentation: |
|
2 | 7 |
Il y a 4 years, 9 months
- |
|
|
Use EXIF DateTime as Post DateTime
Commencé par : Fred Konings in: Toolset Professional Support |
|
3 | 9 |
Il y a 4 years, 9 months
- |
|
|
Create a VIEW filter with dropdown box prefilled with current year
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 3 |
Il y a 4 years, 10 months
- |
|
|
“VIEW not found » error, after migration to production-server
Commencé par : Fred Konings
in: Toolset Professional Support
Problem: Solution: Relevant Documentation: |
|
2 | 5 |
Il y a 4 years, 10 months
- |
|
|
After editing the title-field in a form, make sure slug is updated accordingly
Commencé par : Fred Konings
in: Toolset Professional Support
Problem: The customer wanted to update the post slug when the post title was updated using the Toolset post form. Solution: Shared the code example for the function attached to the "cred_save_data" hook. Relevant Documentation: https://toolset.com/documentation/programmer-reference/cred-api/#cred_save_data |
|
2 | 3 |
Il y a 4 years, 10 months
- |
|
|
create a VIEW which displays only posts created by users with the role "Author"
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 11 |
Il y a 4 years, 10 months
- |
|
|
VIEW – masonry layout only shows one column
Commencé par : Fred Konings in: Toolset Professional Support |
|
2 | 11 |
Il y a 4 years, 10 months
- |