Title: PHP code snippet
Last modified: April 24, 2026

---

# PHP code snippet

 *  [rudijahn](https://wordpress.org/support/users/rudijahn/)
 * (@rudijahn)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/php-code-snippet-2/)
 * Da das Plugin nextgen gallery einige Funktionen im Update “geschluckt” hat, hat
   man mir empohlen, ein PHP code snippet einzufügen.
   Da ich aber kein Spezialist
   bin, ist das für mich nachvollziehbar, wo ich das machen soll.
 * Das folgende sollte irgendwo eingebaut werden:
 * $options = get_option(‘ngg_options’);
   $options&#091;’item_details_per_page’] 
   = 200;update_option(‘ngg_options’, $options);
 * Kann mir da bitte jemand weiterhelfen?
   Besten Dank im voraus
    -  This topic was modified 1 month, 2 weeks ago by [Steven Stern (sterndata)](https://wordpress.org/support/users/sterndata/).
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-code-snippet-2%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  [Mohammed Jabir shaikh](https://wordpress.org/support/users/jabir20/)
 * (@jabir20)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/php-code-snippet-2/#post-18890225)
 * Hallo,
 * der Code ändert eine gespeicherte Option von NextGEN Gallery. Bitte fügen Sie
   ihn nicht irgendwo in eine Seite oder einen Beitrag ein.
 * Am sichersten wäre es, den Code nur einmal auszuführen, z. B. über ein Code-Snippet-
   Plugin oder in der functions.php eines Child-Themes. Danach sollte das Snippet
   wieder deaktiviert/entfernt werden, da die Option sonst bei jedem Seitenaufruf
   erneut gespeichert wird.
 * Bitte vorher unbedingt ein vollständiges Backup der Website/Dateien und Datenbank
   erstellen.
 * Der Code wäre:
 * $options = get_option( ‘ngg_options’ );
   $options[‘item_details_per_page’] = 200;
   update_option( ‘ngg_options’, $options );
 * Wichtig: Führen Sie solchen Code nur aus, wenn Sie der Quelle vertrauen oder 
   der Plugin-Support von NextGEN Gallery das ausdrücklich empfohlen hat.
 * Falls Sie unsicher sind, würde ich empfehlen, den NextGEN-Gallery-Support nochmals
   zu fragen, ob dieser Wert weiterhin der richtige Weg für Ihre Plugin-Version 
   ist.
 *  Moderator [threadi](https://wordpress.org/support/users/threadi/)
 * (@threadi)
 * [1 month, 2 weeks ago](https://wordpress.org/support/topic/php-code-snippet-2/#post-18890308)
 * The code as it stands is likely to cause problems. I’d be interested in seeing
   the specific instructions you received. Where can I find them?
 * By the way, here’s a general German-language support forum: [https://de.wordpress.org/support/forums/](https://de.wordpress.org/support/forums/)

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

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fphp-code-snippet-2%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

## Tags

 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [threadi](https://wordpress.org/support/users/threadi/)
 * Last activity: [1 month, 2 weeks ago](https://wordpress.org/support/topic/php-code-snippet-2/#post-18890308)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
