Bug when uploading an image when adding a custom post type
Started by: morganS-2
in: Toolset Professional Support
Quick solution available
2
3
4 years, 4 months ago
morganS-2
Want to Add Claim Your Business Button
Started by: Rahul Singh
in: Toolset Professional Support
Quick solution available
2
5
4 years, 4 months ago
Rahul Singh
Autosave title from CFand add incremental number starting from 1 each year
Started by: felixM-3
in: Toolset Professional Support
Quick solution available
Problem:
The issue here is that the user wanted to auto assign their post title based on the custom field values on their Post Form.
Solution:
This can be done by using the code below. Add the following to your Toolset custom code settings at Toolset->Settings->Custom Code. Once you've done this please ensure that you've activated it as well as change the ID 123 to the ID of your view.
add_action('cred_save_data','func_custom_post_title',10,2);
function func_custom_post_title($post_id,$form_data) {
if ($form_data['id']==123) {
$field_1 = $_POST['wpcf-field-slug-1'];
$field_2 = $_POST['wpcf-field-slug-2'];
$args = array('ID' => $post_id, 'post_title' => $field_1.' '.$field_2);
wp_update_post($args);
}
}
The above is a basic method on how to update the post title.
2
6
4 years, 4 months ago
felixM-3
Show file size and download count for files uploaded to a post
Started by: duongN-3
in: Toolset Professional Support
Quick solution available
Problem:
I added a function that I found from the Toolset support forums and I'm wondering if you can help me with 2 things:
1. Show Download Count per file
2. Show file size per file
Solution:
There isn't such kind of built-in feature within Toolset plugins, you might consider other plugins, for example:
https://wordpress.org/plugins/search/download/
Relevant Documentation:
2
3
4 years, 4 months ago
duongN-3