How to display custom post in archive section of the wordpress page?

You can use this shortcode in your archives page:

[catlist id=7]

You can find “id” on the url of category

error code: 523