Metabox with file upload to custom directory

I will not follow the whole metabox thing, but Just to point some ” leads ” as you asked regarding the upload folder .. The upload dir in wordpress is set via the wp_upload_dir() function – which is filterable .. $uploads = apply_filters( ‘upload_dir’, array( ‘path’ => $dir, ‘url’ => $url, ‘subdir’ => $subdir, ‘basedir’ … Read more

owner/group issue on server

The code should be owned by the FTP User and Group, but then have permissions set wide enough to allow the webserver to read the files. Typically this is 644 for files and 755 for directories. More information: http://codex.wordpress.org/Changing_File_Permissions#Permission_Scheme_for_WordPress

Make custom thumbnail size image in media_sideload_image function

You can do something like this in your functions file. add_image_size( ‘category-thumb’, 300 ); // 300 pixels wide (and unlimited height) add_image_size( ‘homepage-thumb’, 220, 180, true ); // (cropped) Then you can do something like this to give your custom size a certain name in the Admin area. add_filter( ‘image_size_names_choose’, ‘my_custom_sizes’ ); function my_custom_sizes( $sizes … Read more

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