I have made a custom post type with a file-field in backend. Instead of just showing the URL of the file-field in frontend, I want to show the ID of the attachment in addition to the url of the uploaded file.
Unfortunately this is not something that can be achieved by default with our Toolset plugins and as such you will need to make use of a custom shortcode to do this.
Add the following to your custom shortcodes section at Toolset -> Settings -> Custom Code and activate it.
<Code>
You can use the shortcode by doing the following [get_file_id field='wpcf-my-field' post_id='[wpv-post-id]']
Now replace wpcf-my-field with the slug of your custom field keeping the wpcf- prefix.