Skip to content

Conversation

@zzap
Copy link
Owner

@zzap zzap commented Nov 3, 2021

No description provided.

'post_type' => ['post', 'page'],
'post_status' => 'any',
'date_query' => array(
$query = new WP_Query( array(

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @zzap!
The client mentioned that this query was really slow. What would you recommend to improve it's speed?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I removed some unnecessary queries and joining additional database tables. The query should be 3.5 times faster now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants