如何将创建的订单按日期添加到此函数中?
if ( !isset( $gmw[\'search_results\'][\'custom_taxes\'] ) )
return;
$taxonomies = apply_filters(
\'gmw_pt_results_taxonomies\',
get_object_taxonomies( $post->post_type, \'names\' ),
$gmw,
$post
);
$output =\'\';
foreach ( $taxonomies as $tax ) {
$terms = get_the_terms( $post->ID, $tax );
if ( $terms && !is_wp_error( $terms ) ) {
$termsArray = array();
$the_tax = get_taxonomy( $tax );
foreach ( $terms as $term ) {
$termsArray[] = $term->name;
}