Next, I have a problem. I created a post_type = 'gallery'. So when I open my gallery my link goes like this:
but I need a structure like this:
'rewrite' => array('slug' => '/',)
How can save my post name(my permalink structure) and then add gallery name and image name? Thank you.