Additional image sizes are not being generated

From https://make.wordpress.org/core/2012/12/06/wp_image_editor-is-incoming/ : Imagick support requires Imagick 2.2.0+ compiled against Imagemagick 6.2.9+, for full support. If the required functions aren’t available, WordPress will default back to GD. If you can, create a PHP file somewhere on your server with this content: <?php phpinfo(); ?>. Then load the page and see if there is a section … Read more

Error when requesting password reset email – wp authentication

Sounds like a server configuration problem, not a WordPress thing. You said you were using Rackspace? I don’t have personal experience with Rackspace but it appears that they have some known issues with the default PHP mail() function. See: http://feedback.rackspace.com/forums/71021-product-feedback/suggestions/1873281-fully-support-php-mail-function- http://www.joshuawinn.com/huge-email-delays-on-rackspace-cloud-sites-dont-use-php-mail/ The primary issue is that sending straight through mail() doesn’t authenticate the sender, using … Read more

Strip Image Classes from HTML Output

Take a closer look at get_image_tag() which can take a lot of parameters like $id, $alt, $title, $align, $size. If you look even closer you’ll find the get_image_tag_class filter to change the image class names (like class, ID, align and size). You can use the filter within your functions.php like this: Note: This will still … Read more

How to stop PHP code running when in a child theme

You can’t actually “remove” PHP code from the parent theme. What you can do is undo things done there. The counterpart of wp_enqueue_script is wp_dequeue_script. If you put this in your functions.php it should remove the Masonry Plugin (untested) add_action( ‘wp_print_scripts’, ‘de_script’, 100 ); function de_script() { wp_dequeue_script( ‘jquery-masonry’ ); } Source: Function Reference/wp dequeue … Read more

Should I store my Facebook access tokens?

There are a number of explanations here: https://developers.facebook.com/docs/facebook-login/access-tokens The time it takes for your server to talk with facebook does contribute to a good amount of slowdown. So it depends on how intensely you plan to use the api. In that case, storing the key and other fb related user data can cut that cross-talk … Read more

Passing array in add_option()

I think that you have added bguru_options option before. If bguru_options already exists, add_option() does nothing. To modify the value of existing options you should use update_option() instead. EDIT I confirm what I thought. You are running add_option(‘bguru_options’, $default_options); in every admin_init. bguru_options option was added to database in the first run and subsequent calls … Read more

WP_User_Query order by meta_key that is an array

You could save the values with the separate user meta keys: x1, …, x6, points instead of the array: achievements to simplify your WP_User_Query() usage and not having to deal with serialized arrays as user meta values. But I guess you’ve already considered this setup and wanted to avoid it 😉 A compromise would be … Read more