[wp-trac] Re: [WordPress Trac] #6484: custom permalinks setting causes have_posts function not to work outside of 'the loop'

WordPress Trac wp-trac at lists.automattic.com
Wed Apr 2 10:40:58 GMT 2008


#6484: custom permalinks setting causes have_posts function not to work outside of
'the loop'
---------------------+------------------------------------------------------
 Reporter:  jsherk   |        Owner:  anonymous
     Type:  defect   |       Status:  reopened 
 Priority:  normal   |    Milestone:  2.6      
Component:  General  |      Version:  2.5      
 Severity:  normal   |   Resolution:           
 Keywords:           |  
---------------------+------------------------------------------------------
Comment (by westi):

 One of the greedy rewrites is being matched. Either page or category can
 be culprits.

 You need to add a rewrite rule like the ones for the feed files to make it
 work I suspect.

 Look at how #6460 was fixed and also the original reason those rewrites
 were introduced #3214

-- 
Ticket URL: <http://trac.wordpress.org/ticket/6484#comment:12>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list