All, I have a post that works fine with a permalink setup. However, I also have a page called gallery. What I would each post can have a page. So for example I have a post named business-name so my URL would look like this:
http://website.com/business-name
I then want to click on a gallery link for this and that is a page I have created in wordpress. So I was looking to have a URL structure like this:
http://website.com/business-name/gallery
If I change my permalink structure to something like this: /%postname%/%page%/
Then I go to the second link in my question it overwrites the URL to this: http://website.com/gallery
Is something like this possible with a post and then a page?
Thanks
add_rewrite_endpoint
like in this answer.