我正在尝试基于[sort_order]
.
我搜索了很多与没有成功相关的主题
我可以在这里得到一点帮助吗?
目标是对数组进行排序,以便我可以按以下顺序获取数组:1 - [post_images]
2 - [localizacao]
3 - [post_title]
4 -[category]
先谢谢了。
Array
(
[[#taxonomy_name#]] => Array
(
[post_title] => Array
(
[name] => post_title
[show_in_email] => 1
[sort_order] => 3
[options] => Array
(
[0] =>
)
)
[post_images] => Array
(
[name] => post_images
[is_active] => 1
[show_on_listing] => 1
[show_on_detail] => 1
[sort_order] => 1
[options] => Array
(
[0] =>
)
)
[category] => Array
(
[name] => category
[is_require] => 1
[is_active] => 1
[show_on_listing] => 1
[show_on_detail] => 1
[show_in_email] => 1
[sort_order] => 4
[options] => Array
(
[0] =>
)
)
[localizacao] => Array
(
[name] => localizacao
[label] => Localização
[htmlvar_name] => localizacao
[sort_order] => 2
[options] => Array
(
[0] =>
)
)
)
)