@ottlak – My first thoughts would be to something interfering with the JavaScript/jQuery needed for the slideshow … have you tried checking for conflicts with other active plugins?
– Cais.
Thread Starter
OttlaK
(@ottlak)
Yeah, I deactivated all other plugins.
Funny thing is, the slideshow is working in jquery mode in a post just not in the template.
Could the javascript loading via wp-header and wp-footer cause this sort of problem? For example should I load all scripts in the header rather than in the footer?
I am afraid to change the default behaviour in fear of possible problems with other functions/ plugins.
@ottlak – The NextGEN Gallery display JavaScript and CSS are loaded in the footer of the site … and they appear to be loading correctly as far as I can tell in the page source.
This could have to do with where specifically in your theme template files you are adding the do_shortcode call. I’ve tested similar code in a few themes without any issue. Can you provide a link to a Gist or Pastebin of that template … it may help.
– Cais.
Thread Starter
OttlaK
(@ottlak)
Oh wow, I really appreciate your help with this!
I created a pastebin of the header.php at http://pastebin.com/ceQHaPSN
and of the footer.php at http://pastebin.com/bhppUKDj
Is that sufficient or do you need any more information/code?
Thank you so much!
Ottla
@ottlak – Thanks for the links …
… I’m not seeing anything out of the ordinary that would affect the slideshow from appearing. I even used your specific shortcode to check (in most likely a different theme) and it works fine provided I ensure the gallery ID is for one that exists.
Have you tried temporarily switching themes (any of the default WordPress Twenty series themes should be fine) and applying that do_shortcode call appropriately in the “new” theme?
– Cais.
Thread Starter
OttlaK
(@ottlak)
@cais
Funny thing is: as of yesterday the slideshow I inserted in a post stopped working in Flash mode at all (nothing is shown) and in jQuery mode it shows only the images one under another, but not the slideshow.
It worked perfectly in both modes inside a post a few days ago.
So I’m pretty sure it must be some problem with my WP installation or some other conflict. I’ll try to take the site offline and experiment with a default WP theme.
I’ll be back in a few days and let you know, if I found something out to clear the matter up.
Thamks for your time!
Ottla
Thread Starter
OttlaK
(@ottlak)
@cais
The basic slidehow seems to have stopped working now in posts completely.
I switched temporarily to WP default theme TwentyEleven, and here the slideshow works when inserted in the template (either flash or jquery mode) but not when inserted in a post or a page.
Flash mode:
In template:
<?php echo do_shortcode(‘[ngg_images gallery_ids=”9″ display_type=”photocrati-nextgen_basic_slideshow”]’); ?>
=> ok in theme TwentyEleven, ok in custom theme
In post:
[ngg_images gallery_ids=”9″ display_type=”photocrati-nextgen_basic_slideshow”]
=> nothing displayed in both themes
I tried the old shortcode as well because the old gallery code ist still working in both themes:
[slideshow id=9]
=> nothing displayed in both themes
jQuery mode
In template:
<?php echo do_shortcode(‘[ngg_images gallery_ids=”9″ display_type=”photocrati-nextgen_basic_slideshow”]’); ?>
=> ok in theme TwentyEleven, nothing displayed in custom theme
In post:
[ngg_images gallery_ids=”9″ display_type=”photocrati-nextgen_basic_slideshow”]
=> List of images, no slideshow (both themes)
[slideshow id=9]
=> nothing displayed in theme TwentyEleven, list of images in custom theme
NGG is version 2.0.66 (updated from pre 2.x version)
WordPress 3.9.1
Next I’ll try a fresh install of NGG.
Ottla
Thread Starter
OttlaK
(@ottlak)
@cais
I downloaded the newest version of NGG, deleted the old version on my server via FTP and uploaded the new version of NGG 2.0.66
Now slideshows are working correctly in jquery mode and flash mode when inserted either in a post or in the template (theme TwentyEleven).
Unfortunately, in my custom theme a jquery slideshow is still neither working in the template nor in a post, a flash slideshow is only working in the template (but not inside a post).
So I obviously have some work to do on my theme…
Sigh.
I’ll let you know if I find something that might be interesting for other users as well.
Thank you very much again!!!
Ottla
@ottlak – Thanks for all of the follow-up responses.
You might look at what version of jQuery is being used, NextGEN Gallery expects the current version (as bundled with WordPress core). Also check to ensure the NextGEN Gallery JavaScript and CSS are being loading correctly into the footer of the site (usually related to the theme’s use of wp_footer()).
– Cais.