📜  wp_query order by taxonomy - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:50.577000             🧑  作者: Mango

代码示例1
$timeline_taxonomies = get_terms(array(
    'fields' => 'ids',   //get the IDs
    'taxonomy'     => 'taxonomy_name',
    'orderby'      => 'term_order',
    'hide_empty'   => true,
));