wordpress meta_query處理小數位時,會出現問題。官方提出的解決方法,是使用DECIMAL(10,3)來做值類型。
array('key' => 'wpsc_price_sell', 'value' => array((float)$priceFrom, (float)$priceTo), 'type' => 'DECIMAL(10,3)', 'compare' => 'BETWEEN')
Copyright @ 2024 chankuang Powered by .NET 9.0 on Kubernetes Powered by: .Text and ASP.NET Theme by: .NET Monster