humanmade / humanmade/hm-rewrite

Add ability to skip main query

Open
#10 1 comment 0 reactions 0 assignees View on GitHub
enhancement
Dominant language
PHP
Stars
161
Forks
17
PR merge metrics
No merged PRs in 30d

Description

It'd be nice to have a `skip_main_query` option to enable not running the main query at all for pages which are just static, or redirects.

Andy Skelton's answer from [wp-hackers](https://groups.google.com/forum/#!topic/wp-hackers/fsgDeZe6sx0) is a good start, but `WP::query_posts` can be overridden in a nicer way than when that answer was added.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.