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: No mapping found for [post__in] in order to sort on #3227

Closed
1 task done
MARQAS opened this issue Dec 21, 2022 · 1 comment
Closed
1 task done

BUG: No mapping found for [post__in] in order to sort on #3227

MARQAS opened this issue Dec 21, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@MARQAS
Copy link
Contributor

MARQAS commented Dec 21, 2022

Describe the bug

orderby => post__in is not working and throwing an error: No mapping found for [post__in] in order to sort on

Steps to Reproduce

  • Install Debug bar and Debug Bar ElasticPress
  • Enable the query logging in the EP settings.
  • Add a query with orderby => post__in
  • Example query:
new WP_Query(
   	array(
   		'posts_per_page' => 5,
   		'no_found_rows' => true,
   		'post_status' => 'publish',
   		'post__in' => 
   		array(
   			0 => 25,
   			1 => 26,
   			2 => 24,
   		),
   		'orderby' => 'post__in',
   		'ep_integrate' => true,

   	)
   );

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
@MARQAS MARQAS added the bug Something isn't working label Dec 21, 2022
@MARQAS
Copy link
Contributor Author

MARQAS commented Dec 21, 2022

Apologize, We already have a ticket to tackle this: #773

@MARQAS MARQAS closed this as completed Dec 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant