Bug in custom query when "Front page displays": "A static page"
|Reported by:||CyberSpy||Owned by:|
|Severity:||normal||Keywords:||dev-feedback needs-testing needs-unit-tests needs-patch|
Here is the bug I have found:
When Front page displays is set to: A static page
and Blog posts are displayed on other page a bug accours...
Lets prepare test enviroment, with clear wp installation and two posts, where one of them is set to default category, and other is set to newly created category (which defautly has ID = 3).
Now, prepare two pages, and in Setting -> Reading set Front page to one of those pages, and Posts page to second one.
If You would like to exclude posts from category no 3 from main blog index, normaly You would use:
<?php query_posts($query_string . '&cat=-3'); ?> in index.php (or specified loop file linked there).
This would work if blog index is set as home page, but fails to work when above test enviroment is used.
Change History (10)
comment:8 SergeyBiryukov — 19 months ago
- Keywords needs-unit-tests added
- Milestone changed from Awaiting Review to Future Release
- Version changed from 3.3.2 to 3.2.1