WordPress.org

Ready to get started?Download WordPress

Forums

Nicer permalinks with nextgen gallery (2 posts)

  1. Riddergraniet
    Member
    Posted 4 years ago #

    Right now the permalink structure with NG gallery is like "www.site.com/nggallery/page-x/image/y" of course this is not the nicest setup... Can I somehow change this to something like "www.site.com/pagename/nggallery/galleryname/image/y"? Or galleryid is also acceptable...

    I tried to link galleries to pages, but didn't resolve much. I did not correctly understand what the plugin means with "rebuild the permalink structure". I did go over to the permalink settings page and, without making any changes, pressed save changes. Was this enough? Or do I need to make an actual change?

  2. zonerdck
    Member
    Posted 3 years ago #

    Heres what I did. First create a pictures page in wordpress then create a single album. Load that album on the pictures page. Put all your gallery's in that single album. Then if you go into manage gallery it has an option to create a new page do this with every album and make sure the page you make is a sub-page of the pictures page created earlier. This should get you a page structure like this "www.testsite.com/pictures/album/" at this point you will need to type this into the url to make sure it worked. Then all there is left to do is change the links on you main pictures page to point to your subpages instead of the usual gallery pages. In the file /plugins/nextgen-gallery/view/album-extend.php you edit the link to the appropriate one I used the title tag already made to make the link. Isn't perfect but gets the job done.

Topic Closed

This topic has been closed to new replies.

About this Topic