Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG: "Exclude from search results" doesn't work in the AJAX callback function #3911

Open
1 task done
burhandodhy opened this issue May 15, 2024 · 0 comments
Open
1 task done
Assignees
Labels
bug Something isn't working small (< 4 hours)
Milestone

Comments

@burhandodhy
Copy link
Contributor

Describe the bug

When querying the posts in the AJAX callback function, ElasticPress retrieves the post regardless of whether the 'Exclude from search results' option is enabled for that post.

Steps to Reproduce

  1. Create a post titled "Exclude me".
  2. Check the "Exclude from search results" option.
  3. Enable ElasticPress AJAX integration by adding this filter add_filter( 'ep_ajax_wp_query_integration', '__return_true' );
  4. Write an AJAX callback function to search for that post.

Screenshots, screen recording, code snippet

No response

Environment information

No response

WordPress and ElasticPress information

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@burhandodhy burhandodhy added the bug Something isn't working label May 15, 2024
@felipeelia felipeelia added this to the 5.2.0 milestone May 15, 2024
@felipeelia felipeelia added the small (< 4 hours) label Aug 20, 2024
@burhandodhy burhandodhy self-assigned this Sep 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working small (< 4 hours)
Projects
None yet
Development

No branches or pull requests

2 participants