[wp-trac] [WordPress Trac] #10616: post queries are not working with custom permalinks
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 15 04:21:36 UTC 2009
#10616: post queries are not working with custom permalinks
--------------------------+-------------------------------------------------
Reporter: frumph | Owner:
Type: defect (bug) | Status: new
Priority: high | Milestone: Unassigned
Component: Template | Version: 2.8.4
Severity: major | Keywords:
--------------------------+-------------------------------------------------
Comment(by dd32):
I'm still failing to see the problem..
{{{$GLOBALS['archive_year']}}} will be empty unless you set it. WordPress
has overridden {{{register_globals}}} for a long time.
Adding it to {{{query_vars}}} will allow the use of
{{{get_query_var('archive_year')}}} and the use of archive_year in rewrite
rules.
{{{
var_dump($_GET['archive_year']);
}}}
works fine for me in the default themes header.php file.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10616#comment:11>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list