echo is_tax() && get_queried_object()->slug === $product_category->slug ? 'current' : '';
$t = $metro->taxonomy. '_' . $metro->term_id;
$vetka = get_field('vetka', $t);
register_taxonomy(
'mangal',
array('recipes'),
array(
'hierarchical' => true,
'show_admin_column' => true,
'show_in_rest' => true,
'publicly_queryable' => true,
)
);
$purchase_information = array(
'post_title' => '',
// ...
);
$purchase = wp_insert_post( $purchase_information );
$my_purchase = array();
$my_purchase['ID'] = $purchase;
$my_purchase['post_title'] = __( 'Покупка №' ) . ' ' . $purchase;
wp_update_post( wp_slash( $my_purchase ) );
$main_page = get_post($id);