Filter on a custom field
-
I created a custom field on posts called “byline” using Advanced Custom Fields and want to set up a search that just searches on that field.
I tried implementing the code from this page:
https://www.relevanssi.com/user-manual/manual-search-results-filtering/but even replacing “colour” with “byline”, it doesn’t seem to be working. When I try a search URL like this:
https://mysite.com/?s=&byline=JohnI have set up the byline field to be indexed by Relevanssi, and when I do a regular search without the byline parameter, it finds the posts, so I know the field is being indexed…
https://mysite.com/?s=JohnAny suggestions on how I can be able to run a search just on this byline field?
- The topic ‘Filter on a custom field’ is closed to new replies.