#2278 closed defect (bug) (invalid)
Query for topic set as is_home
Reported by: | MZAWeb | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.1 |
Component: | Component - Topics | Keywords: | |
Cc: | wordpress@… |
Description
When you query a single topic, the resulting WP_Query has is_home as true and is_singular as false.
To replicate:
var_dump( new WP_Query( 'topic=test' ) );
Replace 'test' with the post_name of one of your topics
Change History (3)
Note: See
TracTickets for help on using
tickets.
WP's parse_query doesn't seem to handle custom post types query_vars to set is_single.
This feels more like a hack than a solution, but it works: