[wp-trac] [WordPress Trac] #10616: post queries are not working with custom permalinks
WordPress Trac
wp-trac at lists.automattic.com
Sat Aug 15 00:12:31 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 filosofo):
Replying to [comment:6 frumph]:
> I think you're missing the point that a $_GET works with permalinks off,
but doesnt with permalinks on.
I can't reproduce that.
If I request something like
{{{
http://mysite.com/category-slug/post-slug/?archive_year=2009
}}}
And then put in index.php of the theme:
{{{
if (isset($_GET['archive_year'])) {
$archive_year = (int)$_GET['archive_year'];
print_r("the year is $archive_year");
}
}}}
It prints "the year is 2009". What are you doing differently?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10616#comment:7>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list