Add media column to edit post screen

you can create a column of post_thumbnail like so: // ADDING THUMBNAIL TO EDIT SCREEN if ( !function_exists(‘fb_AddThumbColumn’) && function_exists(‘add_theme_support’) ) { // for post and page add_theme_support(‘post-thumbnails’, array( ‘post’, ‘page’ ) ); function fb_AddThumbColumn($cols) { $cols[‘thumbnail’] = __(‘Thumbnail’); return $cols; } function fb_AddThumbValue($column_name, $post_id) { $width = (int) 100; $height = (int) 100; if … Read more

Setting higher upload limit

add this to your .htaccess file in the root of WordPress installation directory: php_value upload_max_filesize 20M php_value post_max_size 20M and you can change 20 to whatever you want, unless your hosting server is limiting it it should work just fine. Update: Create the php.ini File and add the Following: memory_limit = 20M upload_max_filesize = 192M … Read more

How do I go straight to “Edit More Details” when clicking on an item in the media library?

From /wp-includes/script-loader.php: $scripts->add( ‘media-grid’, “/wp-includes/js/media-grid$suffix.js”, array( ‘media-editor’ ), false, 1 ); From wp-admin/upload.php: wp_enqueue_script( ‘media-grid’ ); wp_enqueue_script( ‘media’ ); wp_localize_script( ‘media-grid’, ‘_wpMediaGridSettings’, array( ‘adminUrl’ => parse_url( self_admin_url(), PHP_URL_PATH ), ) ); So, we can try to unregister the initial media-grid.js file and load our own version. This can be done via a plugin: <?php /** … Read more

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