I want fetch custom post with taxonomy id

you Need To change Your tax_query:

‘tax_query’ => array(
array(
‘taxonomy’ => ‘myservices’,
‘field’ => ‘id’,
‘terms’ => $custom_term->ID,
),
),

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)