nextgen-gallery embedding thingy in a template (6 posts)

  1. a_johnson
    Posted 6 years ago #

    I'm trying to add a rotating image to the masthead. When I add [ slideshow id=20 w=400 h=300 ] to the div, it just displays it as text. When I enclose it in PHP tags, it throws an error. What do I need to do to activate this short tag in a template?

    Also, to make this work, I am supposed to download some JW something plugin. That plug in doesn't have the named swf file to copy to the Nextgen subdirectory.

  2. a_johnson
    Posted 6 years ago #

    I found a comment on a web site to use this:

    <?php echo do_shortcode('[slideshow id=20 w=400 h=300]'); ?>

    But it doesn't work for Nextgen. Any ideas are still welcome.

  3. a_johnson
    Posted 6 years ago #

    I fixed it partly by downloading a random image thing from the list in the plugins. I had to give up my email address to do it for what I assume was a bogus registration. Oh well.

  4. a_johnson
    Posted 6 years ago #

    Nope, the random image thing didn't work. It displays nothing. I unchecked the option to plaster an ad across my image so maybe that was it.

  5. a_johnson
    Posted 6 years ago #

    Bump and I'm wondering if anyone knows yet. I completely removed and reinstalled the site but am still looking for that slideshow functionality in the masthead of the document.

  6. argraff
    Posted 5 years ago #

    I used the following code to embed a nextgen slideshow into my sidebar. Probably too late to help you out, but for others looking for a way...

    <?php $gal = apply_filters('the_content', '[slideshow id=x]' );
    echo $gal; ?>

    Change 'x' to the gallery number you need. Hope this helps someone! (Note: I modified someone else's code - I could never have figured that out alone!)

Topic Closed

This topic has been closed to new replies.

About this Topic


No tags yet.