I have created and added the post, attached a few pictures and put the gallery in the content. gallery inserted as Attachment Page.
when I click on the pictures gallery in the post, I get a page not found.
link looks like:
http://site.ru/custom_post_type/post_name/link_url_from_attacments/ - not work
but when I remove the custom_post_typ from link i see the picture
http://site.ru/post_name/link_url_from_attacments/ - work
how I get to work a link http://site.ru/custom_post_type/post_name/link_url_from_attacments/?