document.querySelectorAll('.nav-about a').forEach((n, i) => n.attributes.href.value += i + 1);
$categories = get_the_terms( $post->ID, 'voprosy-types' );
$category_ids = array();
foreach( $categories as $individual_category ) {
$category_ids[] = $individual_category->term_id;
}
$args = array(
'post__not_in' => array( $post->ID ),
'posts_per_page' => '5',
'orderby' => 'rand',
'tax_query' => [
[
'taxonomy' => 'voprosy-types',
'field' => 'id',
'terms' => $category_ids,
]
]
);