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

post_title and post__in Arguments filter not working in WP_Query with ep_integrate Set to True #4005

Open
1 task done
mahesh-spinx opened this issue Nov 14, 2024 · 0 comments
Labels

Comments

@mahesh-spinx
Copy link

Describe your question

I am experiencing an issue with the post_title and post__in arguments in a WP_Query when ElasticPress integration is enabled (i.e., with ep_integrate set to true). These arguments do not appear to filter the results as expected when ElasticPress is active, although they function correctly when ep_integrate is disabled.

Could you please provide guidance on how to resolve this issue or offer any recommendations for working with these arguments in conjunction with ElasticPress?

$args = array(
	'post_type'      => 'attachment',
	'posts_per_page' => 10,        
	's'               => 'document', 
	'ep_integrate'    => true  ,
        'post_title'     => 'aggreements page',
	'post__in'       => array(20,25,36,66,55),  
	'orderby'        => 'post__in',      		
	);	
	$query = new WP_Query( $args );

Code of Conduct

  • I agree to follow this project's Code of Conduct
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant