KeyFocusMedia
Forum Replies Created
-
Exact same problem here, plugins in [root]/plugins rather than default [root]/wp/plugins … no problems with other plugins and no trouble with NextGen 1.9.3 on WordPress 3.3.2 with exact same directory structure. Did upgrade to WordPress 3.8 and NextGen 2.0.40 and NextGen croaked.
Final followup…
Although turning off the deactivate page link solved the problem with linking to custom pages, it created the problem that the default gallery.php template did not display for those galleries that did not have custom pages. What I need is to display a custom page for galleries that have one and display the default page for galleries with no page link defined.
I got the results I need by turning ON the deactivate page link which asks nggallery to generate a default page link url for every gallery. The generated url triggers the normal nggallery display template. I then added the following filter (in my functions.php) which checks whether there is a link page defined for the particular gallery and overrides the default link url if one is defined. Works like a champ…
// Modify nggallery page link url function gallery_page_url( $gallery ) { if ( $gallery->pageid ) $gallery->pagelink = get_permalink( $gallery->pageid ); return $gallery; } add_filter('ngg_album_galleryobject', gallery_page_url );That was it, I should have caught that!!
Thanks Joseph!!
FOLLOWUP INFORMATION…
I did have a thought, since I have a custom “gallery.php” template stored in “<theme>/nggallery” I thought that could be causing my problem. So I removed the custom template directory completely but it didn’t make any difference. I am still looking for suggestions!!
Thanks