Loop through items created in a custom post type

You Need to create a custom post type template for this and fetch the posts there, You will find details regarding how to create a template file here:Custom Post Type Template Files.
Create a page for the custom posts to show and assign the template file created.
More details can be found here: https://www.cloudways.com/blog/how-to-create-custom-post-types-in-wordpress/

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