I've turned on the front-end user form post expiration date to expire a post X due of days after posted. I would like to be able to display this on the front-end. Is there a way to display that value?
Thank you for contacting our support forum. I'll be happy to assist you
You'll find a "Countdown" block from Toolset in the blocks list, which can be used to show the countdown timer, linked to a date type custom field, for instance.
I am attaching some examples in screenshots from the backend and the frontend showing this block:
- enlace oculto
- enlace oculto
Please let me know if this explanation is clear to you and solves the question. Thank you.
Yes, in this case you'll need to customize a code having the desired function and shortcode. Please check these examples that my colleagues gave for similar questions:
Note: the possible solution provided is to be used just as an informational one. Please remember that custom coding is out of the scope of our support, so we can't create, debug or modify code for you and it's your responsibility to maintain it. We hope the one we used as an example could point you in the right direction. Please check our support policy: https://toolset.com/toolset-support-policy/
Thanks for your understanding. If you need anything else don't hesitate to contact us.
If this is still not what you really want to achieve, in order to fully understand it, may I kindly ask you to show us where exactly do you want to display this information? Also, I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: enlace oculto
Please, let me know if you need any additional details. Have a nice day.
Thanks for providing the credentials, but could you please also point us to the exact location you want to show the post expiration date?
About this:
I don't see Post Date Expiration as a field that I can insert. See screenshot.
It is expected, you would need to first create a 'Date' custom field in the correspondent field group, fill it in the desired post, and then display it in the screen you shared with us. Kindly give it a try and let us know if you're able to achieve it now.
If not, please show us an example of place you would insert this info and we'll check it better. Thank you.
Mateus, please help me understand why are you asking me to create another custom field, when your tool provides the field already as shown in the screenshot, it's in the top right corner of the post on the back-end edit screen, it's in a box called "Artist expiration".
I would like to include this field not only on the front-end user display on a single post layout, but as well in a Toolset view that I use on the My Account dashboard as well as it should be available to send in the Notifications that go out, e.g. from the User Form you can send all kind of data fields in the email and we should let the user know when their post will expire.
Sorry for not sharing it previously, the whole thread I was thinking in a more complex system (like the countdown, or the displaying of a specific custom field), and forgot about this simple function. Thanks for your understanding and patience.
Please give it a try and let us know if you have the desired results. Thank you.