I have a list of publications (custom post type) with a custom search form for them.
In the search box they can select what fields to search: title, author(custom), & publication year(custom).
Right now, I have it working to search all the fields and only publication posts. But im confused on the rest.
Is that possible? If so, does it require the pro version?
Im using the $query->query_vars method because this search is embedded in the publications archive page.
I tried $query->query_vars[‘custom_field’] = array(‘author’, ‘pubdate’); and other forms of that.
- The topic ‘Search specific fields (some custom)’ is closed to new replies.