Is it possible to use a shortcode in a toolset custom field?
Basically I want to insert the Post ID in a custom field along with other information so I want to use a Shortcode for this as otherwise I need to save the post find the ID and then insert it into the field.
Hello. Thank you for contacting the Toolset support.
Well - whatever you will add to Toolset custom field it will be saved as a text.
If you can share more details about your issue and share what exactly you want to achieve by adding the shortcode to the custom field then I will be able to guide you in the right direction. Please share your whole requirement with what output you want to display and problem URL and access details.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I have set the next reply to private which means only you and I have access to it.
Are you talking about a back end post edit screen, or a front end form?
It's certainly not a valid place to use a shortcode in the back end.
In a front-end form you could use a shortcode to provide the default value of a field, but which post should the shortcode use as a source? By default if you use a shortcode such as wpv-post-id in a form field it will refer to the context where the form is displayed (typically the page where the form is inserted).
I don't imagine that is what you are looking for.
If you want to refer to the post which is being published by the form (and which doesn't exist at the time the form is rendered and the shortcode parsed) then you need to use the Forms API to update the custom field after the post has been created.