[wp-trac] [WordPress Trac] #15340: meta_value needs needs more flexibility to be either a string or an integer

WordPress Trac wp-trac at lists.automattic.com
Wed Nov 10 11:03:23 UTC 2010


#15340: meta_value needs needs more flexibility to be either a string or an integer
--------------------------------------+-------------------------------------
 Reporter:  jcskyrocket               |        Owner:           
     Type:  defect (bug)              |       Status:  closed   
 Priority:  normal                    |    Milestone:           
Component:  General                   |      Version:  3.0.1    
 Severity:  normal                    |   Resolution:  duplicate
 Keywords:  meta_compare, meta_value  |  
--------------------------------------+-------------------------------------

Comment(by jcskyrocket):

 Replying to [comment:7 scribu]:
 > > What is the correct way to use meta_value_num to force meta_compare to
 use integers? I was only able to use meta_value_num as a value for
 orderby.
 >
 > Yes, I think you're limited to sorting in WP 3.0.

 nacin seems to think otherwise. Have seen the same advice on a number of
 threads. Could not figure it out though. I agree with you, meta_value_num
 does appear limited to sorted in 3.0.

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


More information about the wp-trac mailing list