WordPress/GeoDirectory – Conditional Date Display for Events

30.0 GBP

30.0 GBP peopleperhour Technology & Programming Overseas
49 days ago

Description

I’m using a WordPress website with the Avada theme and the GeoDirectory plugin to manage events.
Each event requires a visible date, but in some cases, I want to show a custom label like "Spring 2025" or "Coming soon late 2025" instead of the actual event date.
To manage this, I’ve already set up a custom text field using GeoDirectory’s Custom Fields called no_date_info.If this field is filled in, I want that value to be displayed instead of the default date, and for the actual date to be hidden on the front end.
What I need:A small bit of PHP (and possibly CSS) that:- Checks if the no_date_info field is populated.- If it is, hide the regular date field output and display the text from no_date_info instead.- (I have already set it up that if no_date_info is empty, then display the regular event date as usual.)The purpose of still entering a real date behind the scenes is so events stay in the correct chronological order in lists (also its a required field) — I just want the displayed date to be overridden when needed.
Please let me know what access you’ll need (e.g. child theme, template file, etc.) and if you’ve worked with GeoDirectory before — although it’s not essential.
If you have worked with Geodirectory there is potential for me giving you more work in the future as this is a large ongoing project.

关注公众号,不定期副业成功案例分享
Follow WeChat

Success story sharing

Want to stay one step ahead of the latest teleworks?

Subscribe Now

Similar Teleworks