• Resolved Ramzihajaj

    (@ramzihajaj)


    Hi there,

    I’m trying to add a gallery to a page. I’ve added a gallery using the NextGen interface in the wordpress editor however this just produces one single image on the page?

    the code in the text editor is as follows:

    <img class="ngg_displayed_gallery mceItem" alt="" src="https://example.uk.com/nextgen-attach_to_post/preview/id--769" />

    Is this correct?

    https://www.ads-software.com/plugins/nextgen-gallery/

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor photocrati

    (@photocrati)

    @ramzihajaj – What version of NextGEN Gallery are you using? Can you provide a link to this page so we can see it first-hand?

    Thanks!

    – Cais.

    Thread Starter Ramzihajaj

    (@ramzihajaj)

    Hey, Thanks for your reply. I’m using the latest version of the Pulgin (2.0.66.29). I think I’ve honed in on the issue as all the shotcodes input within the text editor do not work but when they are echoed in php they do. I have input the following lined in functions.php but to no avail.

    add_filter('widget_text', 'do_shortcode');
     add_filter( 'widget_text', 'shortcode_unautop');

    Do you have any idea what else could be causing this?

    Thread Starter Ramzihajaj

    (@ramzihajaj)

    So I’ve solved this. I figured out that this was only happening on custom templates. I then queried that issue and found that you have to use the_content() function to extract the content within your custom template and have shortcodes work. This is because the_content() parses the content in a manner that will make your shortcodes work.

    Plugin Contributor photocrati

    (@photocrati)

    @ramzihajaj – Thanks for the follow-up!

    – Cais.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Only one image loads for gallery’ is closed to new replies.