Hi no problem. It’s working fine now except for the following, perhaps worth a heads up:
Scenario: user creates post (in my case it’s a custom post type), but forgets to upload any images. In the template file that outputs the post I have this call for the plugin: echo do_shortcode(‘[portfolio_slideshow]’). On the front end, if I navigate to the post (which has no attached images) I find this:
Notice: Undefined variable: ps_nav in /{my-path}/wp-content/plugins/portfolio-slideshow/inc/shortcode.php on line 324
Notice: Undefined variable: ps_pager in /{my-path}/wp-content/plugins/portfolio-slideshow/inc/shortcode.php on line 328
I cured it by wrapping at those line numbers like this:
if ( $navpos == “bottom” ) {
if(!empty($ps_nav)) {
$slideshow .= $ps_nav;
}
}
if ( $pagerpos == “bottom” ) {
if(!empty($ps_pager)) {
$slideshow .= $ps_pager;
}
}
It’s a guess. I’m not sure if I’m doing the right thing, but it kills the errors and all seems well.
I realise this is not necessarily a common situation and of course I don’t run wp-debug on the production server. I’m just trying to bomb-proof the site for my (inexperienced) client and kill debug output messages on my production site mirror.