select custom post type on regular post

you can use CMB2 you can do this easy https://github.com/CMB2/cmb2-attached-posts take a look at this GitHub to show you how.

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