Codeinwp / Codeinwp/otter-blocks
Live Search doesn't list posts if the searched term is displayed via ACF field
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 198
- Forks
- 36
- Avg merge
- 3d 4h
- Merged PRs (30d)
- 30
Description
What problem does this address?
I created a custom post type where some values in its content are listed via custom fields created with ACF. If I search for such a value from ACF field in the Live Search, the post doesn't appear in the results of the Live Search.
What is your proposed solution?
If the term searched in the Live Search field is present in the content of a post as a value of an ACF field, the post title can appear in the search results.
Suggested here: https://secure.helpscout.net/conversation/2335740709/382433/
Will this feature require documentation? (Optional)
No.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the Live Search implementation and tracing how post content is searched, then investigate how values displayed through ACF fields enter that path. Done means a search for an ACF field value returns the associated post title in Live Search results; the issue names no specific files or tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, wordpress
- Domain
- search
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100