• Resolved stuffedhippo

    (@stuffedhippo)


    Please please please can someone help?

    If I put the following shortcode in a post/p[age it works fine:

    [scrollGallery=id:4;start:1;autoScroll:true;]

    But if I try and put it in one of my PHP templates all it throws back is the shortcode text. If have embedded it like so:

    <?php echo do_shortcode('[scrollGallery=id:4;start:1;autoScroll:true;]'); ?>

    I have tried the NGGallery shortcode in the same place and it works fine, like so:

    <?php echo do_shortcode('[nggallery id=4]‘); ?>

    Any ideas of what to do would be great.

    Thanks

    http://wordpress.org/extend/plugins/nextgen-scrollgallery/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Benedikt Mo

    (@bmodesign2)

    hm…. I’m actually not registered a shortcode outside the content loop. I’ll think about it.

    Plugin Author Benedikt Mo

    (@bmodesign2)

    Hi stuffedhippo,
    I worked on it.
    Please copy this code in your nggScrollGallery.php and try it. If it work’s I will publish it as Version 1.5.
    Please write me your results.

    Thanks Benedikt

    [MASSIVE block of code moderated as per the Forum Rules. Please use the pastebin]

    Plugin Author Benedikt Mo

    (@bmodesign2)

    You have to use:
    <?php echo do_shortcode(‘[scrollGallery id=4 start=1 autoScroll=true]’); ?>

    Plugin Author Benedikt Mo

    (@bmodesign2)

    I moved the code to pastebin:
    http://pastebin.com/xSp6xw6c

    Thread Starter stuffedhippo

    (@stuffedhippo)

    You are a genius bmodesign2. Works like a dream.

    Thanks so much for the quick reply. I have been pulling my hair out all day, luckily I have some left.

    Excellent work.

    Thanks again for saving my bacon!!!

    Plugin Author Benedikt Mo

    (@bmodesign2)

    🙂 gives me pleasure.
    Thanks, so I will publish it as version 1.5.
    If you happy, please give my plugin a good rating at http://wordpress.org/extend/plugins/nextgen-scrollgallery/ and you now, good work can be donated 🙂
    Greetings
    BMo

Viewing 6 replies - 1 through 6 (of 6 total)

The topic ‘[Plugin: NextGEN ScrollGallery] Shortcode in PHP template’ is closed to new replies.