Using ACF custom field for custom post type to order categories

There’s no need to “pass” the order to your third foreach – just loop over $issue_archive again instead of $terms.

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