Replace dates in custom field date to word

Hi Experthive Team and Community,

This question open for anyone!

I am building a website where I have a custom field in the name Deadline with a date format.
Now, since my listing totally depends on listing dates. I like to build a system where, when the deadline date passes away, it does not show the date anymore but instead says Deadline Passed. Something similar to Screenshot.

I would highly appreciate any solution/workaround or PHP snippet.

Thank You
Akhil

Hi,

Thanks for the details. We recommend using a hivepress/v1/fields/date/display_value hook, where you can change the condition, but it is also important to check the Field name, for example, and which page, otherwise it may be applied to all Date fields.

I hope it helps

hello @andrii,

I tried this; it did not work.

Can you please provide any PHP snippet for this?
I would Highly appreciate that.

Thank you so much!

Hi,

Please note that we can only provide simple PHP snippets, and if the solution requires advanced customization, we can only provide general guidance. If you need help with customization, please consider hiring an expert: Customize your website | HivePress