Hello and thank you for contacting the Toolset support.
I am not sure where the shortcode cred-post-expiration is coming from. As far as I know, Toolset does not have a shortcode to return the expiration date. Can you elaborate on this shortcode?
The expiration date is stored in a custom field "_cred_post_expiration_time" as a UNIX timestamp. So you can access its value with the following shortcode:
But this will return the timestamp instead of a formatted date. For that reason, you will have to use a custom shortcode that will format the date. You will end up with a code such as:
Yes, you will need to define the custom shortcode your-custom-shortcode, you can name it whatever you want. Read this article on how to create custom shortcodes here https://codex.wordpress.org/Shortcode_API
Custom code is out of the scope of our support forum, if you are not comfortable writing PHP code for the shortcode, consider hiring a developer or one of our partners. https://toolset.com/contractors/
Thank you for your feedback. I followed that article and other articles. Unfortunately, the documentation that refers to the shortcode is not available anymore.
Discussing this with the team, I find out that the shortcode is provided by Toolset Forms. Toolset Forms must be active.
So I created a One-to-One relationship with two custom post types. Then I created a form with expiration for one of them. Created a post, and linked it to another post in the related custom post type. I was then able to display the expiration date of the related post with the following shortcode:
My relationship slug is "post-dog".
Maybe for your case, you should use "child" instead of "parent" in "@massagista-disponivel.child"
If this is not working for you, please allow me temporary access to your backend and let me check it closely. Provide more details about where do you use this shortcode(What content template or view?).
Your next reply will be private to let you share credentials safely. ** Make a database backup before sharing credentials. **