• Resolved IanW

    (@mikes46)


    I have recently had a WordPress site written and yesterday some code appeared on my homepage which wasn’t there before. It is under the gallery of images about 3/4 way down the page.

    This is what the text says
    ” order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]

    The gallery uses the Nextgen Gallery plugin.

    Any help would be appreciated.

    Thanks.

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • That code is part of a NextGEN shortcode. It looks like somehow the shortcode is inserted incorrectly such that part of the short code is showing. Can you go to that page and copy the entire shortcode as it appears there, and paste it here?

    We just updated shortcodes in the latest release, but it looks like you are using the older/longer versions for that gallery. It should look something like:

    [ngg_images source=”galleries” container_ids=”1″ display_type=”photocrati-nextgen_basic_thumbnails” override_thumbnail_settings=”0″ thumbnail_width=”240″ thumbnail_height=”160″ thumbnail_crop=”1″ images_per_page=”24″ number_of_columns=”0″ ajax_pagination=”1″ show_all_in_lightbox=”0″ use_imagebrowser_effect=”0″ show_slideshow_link=”0″ slideshow_link_text=”View Slideshow” template=”” ngg_triggers_display=”never” ngg_proofing_display=”0″ order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]

    You’ll note that the text your seeing is the last few items there. So it’s like there’s an extra bracket closing your shortcode early.

    FYI – if you update to the latest version and re-insert the gallery, you’ll get a simpler short code that looks something like:

    [ngg src=”galleries” ids=”1″ display=”basic_thumbnail”]

    Thread Starter IanW

    (@mikes46)

    Thankyou for your reply, here is the shortcode.

    [ngg_images source=”galleries” container_ids=”4″ display_type=”photocrati-nextgen_basic_thumbnails” override_thumbnail_settings=”1″ thumbnail_width=”360″ thumbnail_height=”295″ thumbnail_crop=”1″ images_per_page=”20″ number_of_columns=”0″ ajax_pagination=”0″ show_all_in_lightbox=”0″ use_imagebrowser_effect=”0″ show_slideshow_link=”1″ slideshow_link_text=”[Show slideshow]” order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]

    Can you please try removing the [ and ] around Show slideshow in your shortcode. Normally that shouldn’t break, but it may be how the quotes are being interpreted. You might also try using single quotations around it if you want to keep the brackets.

    Thread Starter IanW

    (@mikes46)

    Hi,

    Thank you so much, have removed square brackets and now ok.

    I have the following shortcode on another page with square brackets but don’t have the same problem!

    [nag_images source=”galleries” container_ids=”2″ display_type=”photocrati-nextgen_basic_thumbnails” override_thumbnail_settings=”1″ thumbnail_width=”300″ thumbnail_height=”300″ thumbnail_crop=”1″ images_per_page=”20″ number_of_columns=”0″ ajax_pagination=”0″ show_all_in_lightbox=”0″ use_imagebrowser_effect=”0″ show_slideshow_link=”1″ slideshow_link_text=”[Show slideshow]” order_by=”sortorder” order_direction=”ASC” returns=”included” maximum_entity_count=”500″]

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Code appears on homepage’ is closed to new replies.