[wp-trac] [WordPress Trac] #15171: Query for category returns pages too (since r15650)

WordPress Trac wp-trac at lists.automattic.com
Wed Oct 20 20:01:03 UTC 2010


#15171: Query for category returns pages too (since r15650)
--------------------------+-------------------------------------------------
 Reporter:  demetris      |        Owner:  scribu    
     Type:  defect (bug)  |       Status:  closed    
 Priority:  normal        |    Milestone:            
Component:  Query         |      Version:  3.1       
 Severity:  normal        |   Resolution:  worksforme
 Keywords:  close         |  
--------------------------+-------------------------------------------------

Comment(by demetris):

 OK. Here are some more details:

 First, I forgot to mention that the category with the slug ''misc'' is
 also the default category in the site that had the issue.

 Now, following scribu’s suggestion on the dev channel, I registered the
 taxonomy ''category'' for pages, to see if any of the pages had the
 category ''misc'' assigned to them.

 (This took me more that it should, because I thought the fuction was
 {{{register_taxonomy_for_post_type}}}.  But it is for '''object''' type.)

 Adding cats to pages showed that '''some''' of the pages were in the
 category ''misc'', while others were in no category at all.

 For instance, this page was in the category ''misc'':

 http://op111.net/misc/wp-29-props

 While this had no category at all:

 http://op111.net/misc/wp-30-props

 A quick look did not reveal any pattern explaining the difference.
 Nothing that I could see.

 So, I simply unticked ''misc'' for the pages that had it, removed the
 taxonomy registration, and everything is back to normal.

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/15171#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list