【发布时间】:2012-06-10 17:04:56
【问题描述】:
我正在尝试通过自定义字段使用 query_posts 函数对结果进行排序。
这是我编辑的 query_posts() 函数:
query_posts( "post_type=produkte&".$query_string."&orderby=Price&order=DESC" );
价格看起来像 {Euro}。{Cent} 例如 1.49。
并且 query_posts() 函数的命令不正确。结果是这样排序的:
0.49、1.99、0.99
出了什么问题?
提前致谢!
【问题讨论】:
-
sheikh 所说的,这类问题经常被问到......这里的文档:codex.wordpress.org/Class_Reference/…