Using Query Loop with Custom Post Type

The post-type dropdown in the Query Loop block is populated with data from the REST API endpoint:

/wp-json/wp/v2/types

so we have to make sure the public custom post type is registered with show_in_rest as true for it to be included within that data.

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