Title: Code appears on homepage
Last modified: October 3, 2018

---

# Code appears on homepage

 *  Resolved [IanW](https://wordpress.org/support/users/mikes46/)
 * (@mikes46)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcode-appears-on-homepage%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [edanzer](https://wordpress.org/support/users/edanzer/)
 * (@edanzer)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/#post-10747621)
 * 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](https://wordpress.org/support/users/mikes46/)
 * (@mikes46)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/#post-10748344)
 * 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″]
 *  [edanzer](https://wordpress.org/support/users/edanzer/)
 * (@edanzer)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/#post-10748366)
 * 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](https://wordpress.org/support/users/mikes46/)
 * (@mikes46)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/#post-10748554)
 * 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.

 * ![](https://ps.w.org/nextgen-gallery/assets/icon-256x256.png?rev=2083961)
 * [Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery](https://wordpress.org/plugins/nextgen-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/nextgen-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/nextgen-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/nextgen-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/nextgen-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/nextgen-gallery/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [IanW](https://wordpress.org/support/users/mikes46/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/code-appears-on-homepage/#post-10748554)
 * Status: resolved