Forums

NextGEN Gallery
URLs and permalink structure problems (2 posts)

  1. agomendes
    Member
    Posted 2 years ago #

    Hi there.

    I love this plugin but I’m having some problems with my permalink structure.

    Basically I’m using the function <?php echo nggShowAlbum(1, compact); ?> on my wordpress template (index.php) to call album nr 1.

    If Gallery settings > Deactivate gallery page link is not set, each album thumbnail links to http://www.mysitename.com/gallery-name and it works without problems.

    But is the same option is set, the album thumbnail links to the url http://www.mysitename.com/nggallery/post/my-last-post/album-1/gallery-name which as you could imagine it doesn’t works (shows the last wordpress post from all thumbnails)

    In other hand if I use a wordpress page with the shortcode [album id=1 template=compact] as a default root for my galleries, all album thumbnails links correctly each gallery indifferently of the Gallery settings > Deactivate gallery page link set. If the option is set, the url is http://www.mysitename.com/nggallery/page-144/album-1/gallery-2/ and if is not set the url is http://www.mysitename.com/metro-de-berlim/

    As you can see the plugin is work differently if I user the shortcode in a page or if I call the function nggShowAlbum from a php file (I also have used the code <?php echo do_shortcode('[album id=1 template=compact]'); ?> but the result is exactly the same).

    I’ve some urgency to solve this issue, so I’ll appreciate any help.

    Many Thanks

    PS – I know that Nextgen plugin it’s not very SEO friendly. With the current version, the best that we can achieve is something like http://www.mysitename.com/nggallery/page-144/album-1/gallery-2/ correct? But I know that with some hacks in the Nextgen code it’s possible to run urls like http://www.mysitename.com/galleries/Europe/Spain/Barcelona/ Any help with this?

  2. Joseph
    Member
    Posted 2 years ago #

    Not sure about the shortcode vs function problem but the permalink structure, http://www.mysitename.com/galleries/Europe/Spain/Barcelona/, is achievable without any hacks.

    It can be done by linking each album/gallery to a parent/child page. For example:

    galleries => Master album [album id=1]
    - Europe => Sub-album
    - - Spain => Sub-sub-album
    - - - Barcelona => Gallery

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.