Title: programmin's Replies - page 10 | WordPress.org

---

# programmin

  [  ](https://wordpress.org/support/users/programmin/)

 *   [Profile](https://wordpress.org/support/users/programmin/)
 *   [Topics Started](https://wordpress.org/support/users/programmin/topics/)
 *   [Replies Created](https://wordpress.org/support/users/programmin/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/programmin/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/programmin/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/programmin/engagements/)
 *   [Favorites](https://wordpress.org/support/users/programmin/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 136 through 150 (of 177 total)

[←](https://wordpress.org/support/users/programmin/replies/page/9/?output_format=md)
[1](https://wordpress.org/support/users/programmin/replies/?output_format=md) [2](https://wordpress.org/support/users/programmin/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/programmin/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/programmin/replies/page/9/?output_format=md)
10 [11](https://wordpress.org/support/users/programmin/replies/page/11/?output_format=md)
[12](https://wordpress.org/support/users/programmin/replies/page/12/?output_format=md)
[→](https://wordpress.org/support/users/programmin/replies/page/11/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Black Studio TinyMCE Widget] Breaking with 4.4](https://wordpress.org/support/topic/breaking-with-44/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaking-with-44/#post-6833205)
 * Seems it is fixed after fixing another non-related issue with theme.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Youtube Channel Gallery] Breaks site with 500 error sometimes](https://wordpress.org/support/topic/breaks-site-with-500-error-sometimes/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 5 months ago](https://wordpress.org/support/topic/breaks-site-with-500-error-sometimes/#post-6754413)
 * In case any Youtube-channel-gallery developers are reading this, you should be
   able to see the problem we’re all getting intermittently by adding a line to 
   wp-includes/http-functions.php:
 *     ```
       function wp_remote_get($url, $args = array()) {
       	return new WP_Error('ouch');
       	$http = _wp_http_get_object();
       	return $http->get( $url, $args );
       }
       ```
   
 * and to wp-includes/http.php
 *     ```
       function wp_remote_get($url, $args = array()) {
       	return new WP_Error('ouch');
       	$http = _wp_http_get_object();
       	return $http->get( $url, $args );
       }
       ```
   
 * to simulate network not working.
 * By the way it seems to be an odd design decision that you must put your api key
   in the shortcode!? Why not make it a global option for the plugin and all Youtube
   displays? Also, whenever the plugin is deactivated everyone would see the shortcode
   api key. Will this also be fixed in a new release soon?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photoswipe Masonry Gallery] Setting number of columns](https://wordpress.org/support/topic/setting-number-of-columns/)
 *  [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/setting-number-of-columns/#post-6133731)
 * Actually it doesn’t honor the image-size you set in the WordPress Gallery-editor’s
   size setting. It always has the thumbnails 150px width:
 * .photoswipe_gallery figure {
    float: left; text-align: center; width: 150px; 
   padding: 5px; margin: 0px; box-sizing: border-box; }
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] Nextgen Gallery in ajax tab](https://wordpress.org/support/topic/next-gallery-in-ajax-tab/)
 *  [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/next-gallery-in-ajax-tab/#post-6534745)
 * I think what you’re describing is a fairly common bug in wp plugins – [http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard](http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard)
 * They added a workaround for getting galleries from admin-ajax calls, see here
   for details on the option: [https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context?replies=5](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context?replies=5)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7] contact form 7 fails to work](https://wordpress.org/support/topic/contact-form-7-fails-to-work/)
 *  [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/contact-form-7-fails-to-work/#post-6503049)
 * I wonder if you’ve tried replacing the wp-content/plugins/contact-form-7 directory
   with an older version to see if it really was a recent CF7 update that broke 
   it, or (more likely) a change in your hosting or firewall/blocking.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[YENDIF Video Player & Video Gallery] Including the main theme stylesheet twice, breaks other css.](https://wordpress.org/support/topic/including-the-main-theme-stylesheet-twice-breaks-other-css/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/including-the-main-theme-stylesheet-twice-breaks-other-css/#post-6457933)
 * Thanks, I assume this was some line left from testing, that will be removed in
   future version?
 * Why would it not just wp_enqueue_style( ‘dashicons’ ) ?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Popups - WordPress Popup] Breaks homepage with css.](https://wordpress.org/support/topic/breaks-homepage-with-css/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/breaks-homepage-with-css/#post-6431332)
 * Well for starters, any site with [this ](http://demo.sharefaithwebsites.com/template60/)
   particular template.
 * And in general, any site that doesn’t work with body { height: auto } will be
   way broken.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No longer possible to get nggallery content from admin-ajax context??](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/#post-5848908)
 * Thanks, that’s next best thing to not having the in_admin check I suppose. Btw
   I think I asked this before, but do you have documentation for all those options
   in ngg_options in wp_options table?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No longer possible to get nggallery content from admin-ajax context??](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/#post-5848906)
 * So do you have to add a filter for ngg_load_frontend_logic in wp-config.php for
   this to work? It seems this was never tested to work if the code it needs to 
   work with is in a theme – filters that are immediately run aren’t actually filter-
   able – see for example [http://wordpress.stackexchange.com/questions/196305](http://wordpress.stackexchange.com/questions/196305)
 * Unless I’m missing something and there’s a function to call to re-run the add-
   shortcodes?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No longer possible to get nggallery content from admin-ajax context??](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 9 months ago](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/#post-5848905)
 * Thanks, but this fix is unfortunately not really usable. Since that filter is
   called initially, and not on an action like ‘init’, it’s not likely to ever actually
   be filtered.
 * As you can see in wp-settings.php, the functions.php of themes are called after
   the plugins have all been called up – and in this case, it has decided whether
   or not to register shortcodes. I think even other plugins may or may not be able
   to filter depending on order of loading – unless you can call something within
   Nextgen to tell it to re-add-shortcodes in this case?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] "Call to undefined function ninja_forms_get_form_by_id()"](https://wordpress.org/support/topic/call-to-undefined-function-ninja_forms_get_form_by_id/)
 *  [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-ninja_forms_get_form_by_id/#post-5859508)
 * Oops, either I posted the wrong page, or searching for my error turned up this
   page for some reason… If it persists I will do so, thanks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No longer possible to get nggallery content from admin-ajax context??](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/#post-5848895)
 * As you can see in the answers to this question, plugins that use this is_admin()
   really shouldn’t need to: [http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard](http://wordpress.stackexchange.com/questions/188942/why-not-register-shortcodes-if-is-admin-dashboard)
 * I wonder what the specific reason was for this behavior in Nextgen?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Ninja Forms - The Contact Form Builder That Grows With You] "Call to undefined function ninja_forms_get_form_by_id()"](https://wordpress.org/support/topic/call-to-undefined-function-ninja_forms_get_form_by_id/)
 *  [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/call-to-undefined-function-ninja_forms_get_form_by_id/#post-5859502)
 * I recently got:
    Backtrace from fatal error ‘Call to undefined function ninja_forms_register_field()’
   at wp-content/plugins/ninja-forms-layout/ninja-form-layout.php 78:
 * I hope this gets fixed – thanks 🙂
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No even starting to upload.](https://wordpress.org/support/topic/no-even-starting-to-upload/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/no-even-starting-to-upload/#post-6143147)
 * Yes, I’m still seeing the same behavior with Nextgen 2.1, even with only Nextgen
   plugin active, 2014 theme, and “post name” permalinks.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Photo Gallery, Sliders, Proofing and Themes - NextGEN Gallery] No longer possible to get nggallery content from admin-ajax context??](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/)
 *  Thread Starter [programmin](https://wordpress.org/support/users/programmin/)
 * (@programmin)
 * [11 years ago](https://wordpress.org/support/topic/no-longer-possible-to-get-nggallery-content-from-admin-ajax-context/#post-5848889)
 * The problem isn’t authentication, and actually is_admin() has nothing to do with
   [whether the user’s admin](http://codex.wordpress.org/Function_Reference/is_admin).
 * The problem is for WP ajax calls, is_admin() is true (it’s a /wp-admin/ url),
   and therefore all attempts to get post content with shortcode don’t work.
 * You can try calling the shortcode register functions, but all the register_hooks
   are like:
 *     ```
       if (!is_admin() && ((!defined('NGG_DISABLE_LEGACY_SHORTCODES') || !NGG_DISABLE_LEGACY_SHORTCODES)))
               {
                   C_NextGen_Shortcode_Manager::add....
       ```
   
 * Are you going to add any constant or filter to allow shortcodes to be rendered
   if the page is in admin dashboard?

Viewing 15 replies - 136 through 150 (of 177 total)

[←](https://wordpress.org/support/users/programmin/replies/page/9/?output_format=md)
[1](https://wordpress.org/support/users/programmin/replies/?output_format=md) [2](https://wordpress.org/support/users/programmin/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/programmin/replies/page/3/?output_format=md)…
[9](https://wordpress.org/support/users/programmin/replies/page/9/?output_format=md)
10 [11](https://wordpress.org/support/users/programmin/replies/page/11/?output_format=md)
[12](https://wordpress.org/support/users/programmin/replies/page/12/?output_format=md)
[→](https://wordpress.org/support/users/programmin/replies/page/11/?output_format=md)