WP_Query eliminate memory overflow

Whenever WP_Query() runs on big blogs with many posts, it takes a lot of memory, so we get memory overflow. $args = array( ‘post_status’ => ‘publish’, ‘post_type’ => array( ‘post’ ), ‘posts_per_page’ => -1 ); $query = null; wp_reset_query(); $query = new WP_Query($args); Why there is Memory Overflow? WP_Query actually loads every matching post into…

Tagged , ,

Gravity Forms Stripe Addon

Haven’t found tutorials on Stripe integration for Gravity forms. Certainly, Stripe add-on is very cool and deserves attention. Gravity forms support Stripe Add-on (http://www.gravityforms.com/add-ons/stripe/). And it looks just great. Note that anyone can use the Stripe add-on with Gravity Forms subscription. Stripe has two modes: * sandbox or the testing mode, and * live mode….

Tagged , ,

Show all options (setting) in WordPress

Just navigate to this URL when logged in and you will get all settings. /wp-admin/options.php You can do it also little programming: function all_settings_link() { add_options_page(__(‘All Settings’), __(‘All Settings’), ‘administrator’, ‘options.php’); } add_action(‘admin_menu’, ‘all_settings_link’); It will add an additional option to your settings menu with a link to “all settings” which will show you a…

Tagged ,