Is it possible to create a custom post type with blank page for Post List and Add Post Page only?

Hiding the admin UI that WP generates is trivial and well documented in the official WP Developer docs for register_post_type:

https://developer.wordpress.org/reference/functions/register_post_type/

show_ui bool

Whether to generate and allow a UI for managing this post type in the admin. Default is value of $public.

and

show_in_menu bool|string

Where to show the post type in the admin menu. To work, $show_ui must be true. If true, the post type is shown in its own top level menu. If false, no menu is shown. If a string of an existing top level menu (‘tools.php’ or ‘edit.php?post_type=page’, for example), the post type will be placed as a sub-menu of that.

Default is value of $show_ui.

Using these two mechanisms you can disable all UI, or just remove the menu items core adds. Then you can construct your own pages.


But now I don’t find how to link register_post_type() with add_menu_page()

You don’t, the link does not and never did exist. When you call register_post_type it checks those parameters I just mentioned and adds the menus using the very same functions that you were using for your custom pages.

After removing them nothing prevents you from inserting your own.

Importantly you will want to note down the URL of the add new cpt page, and you’ll need the edit_link function to generate URLs to edit the posts. With that you can build a brand new page to replace it. There is no special linkage that needs to be done to tell WP that your new page is the posts page, both are just pages in the admin area.

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