I wonder if anyone can help with a challenge involving Views and a Types custom field for dates.
I have a custom post type for people. Within that type, there is a custom field for an anniversary date. It is a date field within Types.
Ideally, I would like to have a View that displays the people whose anniversaries we are celebrating today. Essentially, I'm trying to get Views to filter by comparing the Types date (month and day only) to the present month and day.
I was able to follow the instructions on the "Filtering by Dates" page to make posts appear if the anniversary date and today were an EXACT match (including year), but so far, no luck in getting it to ignore the year and compare only month and day.
Hello. Thank you for contacting the Toolset support.
As I understand you are looking to compare only month and date regardless of year? If yes:
-- Please share a link of the page where you have added your views.
*** 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 would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
Wow, that seems like a brilliant solution. Am I right to understand that the shortcode gets the date field from the post, parses out the month and day, and then returns a 1 (true) or 0 (false). The view then evaluates whether we have a true or false and displays the appropriate post?