“Back to Main Gallery” URL
-
I’ve looked around all over and I really can’t seem to find an answer.
I am using this to organize images into galleries. The images open in attachment pages – using image.php – so that I can add additional info with advanced custom fields. That part works cleanly. I’ve added ‘next’ and ‘previous’ buttons so that the user can scroll through the images.
Here are the problems I am trying to overcome:
1. Is it possible to add a ‘back to main gallery’ button?
2. Each gallery has a url that’s like site.com/gallery-name. Clicking an image takes you to site.com/image but I’d like it to be site.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.
Thanks!
- The topic ‘“Back to Main Gallery” URL’ is closed to new replies.