Attachment Page Slug with Parent Page in URL
-
I’ve looked around all over and I really can’t seem to find an answer.
I am using WP’s native gallery system. Each image opens up in an attachment page. There are previous and next links to go from each image.
If I use a folder plugin then I can keep the images cycling through JUST the images in the gallery. If I don’t then, it just cycles through ALL the media images (not just the ones I’ve chosen for the gallery.
here are the problems I am trying to overcome:
1. How to keep the images JUST cycling through the 10 that are in the WP gallery and not having it just go on and on through the media folders.2. How to add a ‘back to main gallery’ button
3. Which leads to the final question:
Each gallery has a url that’s likesite.com/gallery-name
. Clicking an image takes you tosite.com/image
but I’d like it to besite.com/gallery-name/image
Which also means the ‘back to main gallery’ button should be able to get the URL of the parent page but I don’t seem to be able to do that.
PS I know there’s lots of gallery plugins but there’s other things like custom fields, etc, that none of them are able to handle and I can’t style them as cleanly and easily as I’ve already done.
- The topic ‘Attachment Page Slug with Parent Page in URL’ is closed to new replies.