This support ticket is created 2 years, 5 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
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.