How to display gallery under custom url
-
Hello! I’m a photographer and I want my page to have the following structure:
– Main page with all the photos
– Separate page for each of the group.
I’m struggling with the latter. When I manage my theme and add gallery as a link like so:Then the url is https://domain.com/bwg_gallery/landscapes/
I’d like it to be https://domain.com/landscapes/, without the bwg_gallery. How can I accomplish this?
Also how do I create a template for each url? Right now I’m rendering all galleries on my main page like so:<?php if( function_exists('photo_gallery') ) { photo_gallery(4); } ?>
But I’m not sure how it should look like for each individual gallery. I know the id and I know single.php is rendered, but how do I know which ID to render from within single.php? I only know the URL.
- The topic ‘How to display gallery under custom url’ is closed to new replies.