Forums › Forums › Search & Filter Pro › Search multiple fields with single query parameter
- This topic has 11 replies, 2 voices, and was last updated 8 years, 2 months ago by Trevor.
-
Trevor(Private) October 3, 2016 at 11:32 am #61544
There isn’t a simple Yes/No answer to your question.
You have some posts (post or custom posts) that have fields of data, two of which are some form of date field (one a start and the other a finish). Are you wanting to find which posts have such fields where a given date falls between or on those start and finish dates?
Trevor(Private) October 14, 2016 at 11:10 am #63954Well, I would make a custom field (this sort of data probably isn’t really a taxonomy) where the data is a select list like this:
Value : Label
201610 : October 2016
201611 : November 2016Where you can show the Labels to the search form, but actually sort by the values (otherwise in the dropdown list you would get all the Octobers together, and the months would not be in the right order). The list will get long.
Anonymous(Private) October 15, 2016 at 6:06 pm #64227I see, I will make custom field like “_event_month”.
Since this field will be created from event start/end date field programmatically when save post, I don’t need it to be visible or editable on Admin screen.
So write custom function for this would be more simple. -
AuthorPosts