• Resolved 3amprogrammer

    (@3amprogrammer)


    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.

Viewing 1 replies (of 1 total)
  • Plugin Support Nikita Anisimov

    (@nikitaanisimov)

    Hello @3amprogrammer , thanks a lot for reaching out,

    Every gallery/gallery group automatically generates custom post type with?/bwg_gallery/ slug par default and it cannot be changed – would just inserting your gallery on a page with https://domain.com/landscapes/ URL work for you?

    As for inserting individual galleries on pages – you can either generate a shortcode for each individual gallery or alternatively, you can use?Add Photo Gallery?button to access Photo Gallery Shortcode toolbox and insert a shortcode after configuring its options directly from WP editor.

    gallery-48.png
Viewing 1 replies (of 1 total)
  • The topic ‘How to display gallery under custom url’ is closed to new replies.