[wp-trac] [WordPress Trac] #10616: post queries are not working with custom permalinks

WordPress Trac wp-trac at lists.automattic.com
Fri Aug 14 15:24:04 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:            
 Severity:  major         |    Keywords:            
--------------------------+-------------------------------------------------
 With permalinks off this works:

 {{{
  if (isset($_GET['archive_year'])) {
    $archive_year = (int)$_GET['archive_year'];
  }
 }}}

 With Permalinks on:
 {{{
 /%category%/%postname%/
 }}}

 It does not see the posted query, isset shows nothing.

 This is what the dashboard - settings - permalinks asked  me to put in the
 .htaccess (i had since made it rw)

 {{{
 <IfModule mod_rewrite.c>
 RewriteEngine On
 RewriteBase /
 RewriteCond %{REQUEST_FILENAME} !-f
 RewriteCond %{REQUEST_FILENAME} !-d
 RewriteRule . /index.php [L]
 </IfModule>
 }}

 I noticed as well that if I set it using the get_query_var and add the var
 to the vars list I couldn't get that to work at all with whatever tutorial
 I was reading.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/10616>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list