List of Posts in a Custom Field

It depends on what plugin you are using to generate your custom fields.

For example the Advanced Custom Fields plugin has this option built in – the field type is called “Post Object“.

Documentation:
ACF > Field Types > Post Object

Screenshot:

ACF Post Object Options

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