Which are precisely the predefined image sizes?

The defaults are Thumbnail 150×150, Medium 300×300, and Large 1024×1024. The fixed values can be changed in the admin dashboard under Settings > Media. You can also change them in your theme’s functions.php: update_option( ‘thumbnail_size_w’, 160 ); // Set Thumbnail width – default 150 update_option( ‘thumbnail_size_h’, 160 ); // Set Thumbnail height – default 150 … Read more

Graphing libraries for WordPress [closed]

Google Chart API Free service, that generates chart images (hosted and served by Google) from data in URL requests. If you need something very specific and of fixed parameters it is easy to hardcode most of it and get away without any library (and licensing issues) at all. Disadvantages: not suitable for sensitive data (passed … Read more

How can I hide media library images from general users?

To let the current users only view his/her uploaded attachments, add the following code to your themes actions: add_filter( ‘posts_where’, ‘devplus_wpquery_where’ ); function devplus_wpquery_where( $where ){ global $current_user; if( is_user_logged_in() ){ // logged in user, but are we viewing the library? if( isset( $_POST[‘action’] ) && ( $_POST[‘action’] == ‘query-attachments’ ) ){ // here you … Read more

Change the output for [gallery] shortcode

The source for the gallery shortcode is in wp-includes/media.php. There are a couple of hooks in there that might work for you. Without knowing exactly what you want to do, it is impossible to be more specific. If that doesn’t work then you can remove the shortcode: remove_shortcode(‘gallery’); And add another gallery shortcode with the … Read more

Automating a Daily Picture Blog?

There are lots of ways to accomplish a daily picture blog so I’ll just give you how I’d approach it. If I wanted to set up a photoblog on WordPress I’d start with a Flickr account and leverage it (or if you don’t like Flickr for some reason you can also look at PhotoBucket, SmugMug, … Read more

Replace Woocommerce Images

Unfortunately, trying to pull a fast one on the WordPress media library with FTP won’t work. You’ll need to import them through the WP admin so they get added to the database, resized, and whatever other special sauce WP adds. I’ve never used it, but this plugin sounds like it might be right up your … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)