Year Range

By: Peter S | Asked: 03/21/2024
ForumsCategory: Code HelpYear Range
Peter S asked 4 weeks ago


I have three fields:

Year of Birth - Stores the year of birth
Year - Use to search the years of birth
Range - to set a range for the search. For example if Year equals 1882 and the range is set to +/- 1 then it should give the result 1881, 1882 and 1883

I am using the attached code but it returns no results. Can anyone help identify the problem? 


1 Answers
Rob LeVineRob LeVine answered 4 weeks ago

I suggest turning on WordPress debugging and putting in error_log statements to see what the values are at various points in the code.

Making the Best WordPress Plugin even better - Together

Take on bigger projects with confidence knowing you have access to an entire community of Formidable Experts and Professionals who have your back when the going gets tough. You got this!
Join the community