shinobistyle
Forum Replies Created
-
Got it, realized the gallery URLs were getting the slug of the last post from the ‘News & Events’ listing (positioned right before nggShowAlbum is called in the template file) appended to them. The listing was generated with the following:
<?php $posts = get_posts(); foreach($posts as $post) { setup_postdata($post); // list each post title in a link } ?>If anyone else runs into this, try putting the following right before you call the nggShowAlbum function, it’s what fixed it for me.
$post = '';Edit: typo stuff
Just to update, I’ve tried installing the new version of NextGen released a couple days ago and this problem persists. I haven’t been able to locate any other references to this problem aside from one closed thread here from a year ago with no solution.
Has anyone else encountered this and found a way to fix it?
Also because I didn’t mention it in my original post, if I attempt to use the shortcode in the PHP file in lieu of the nggShowAlbum function – the results are the same as if I’d used the function.
Forum: Plugins
In reply to: content sliderWhen you say you’re losing your page, do you mean the site is just loading as a white page? If so it’s likely due to a PHP syntax error stemming from how you’re entering the code.
Depending on how your theme files are set up… You would likely be pasting it into a theme file (such as page.php) in an appropriate place in the content area as follows:
<?php //ensure you're not pasting it as-is inside of existing php tags like these ?> <div id="slider_container"> <?php if(function_exists('wp_content_slider')) { wp_content_slider(); } ?> </div>It might help for you to paste the contents of the theme file you are working with to pastebin and link that here so it’s clear how you are entering the code above.