Upload media file problem

I’d suggest asking your client what value is shown when adding media, as shown here in the screenshot. If the value shown is 1mb then i can tell you the function responsible is the following. function wp_max_upload_size() { $u_bytes = wp_convert_hr_to_bytes( ini_get( ‘upload_max_filesize’ ) ); $p_bytes = wp_convert_hr_to_bytes( ini_get( ‘post_max_size’ ) ); $bytes = apply_filters( … Read more

WordPress admin not changing language

The problem was that I had changed the ‘WP_CONTENT_DIR’ directory, and WordPress did not have writing permission to the new content folder, so it couldn’t create the ‘WP_CONTENT_DIR’/languages folder. After creating the languages folder in my new WP_CONTENT_DIR directory WordPress did the language upgrade successfully.

Blank page for edit.php

In your usermeta database table, there will be rows containing a meta_key of edit_post_per_page find the row that matches your username and then either change the value to something more sensible, or delete that row to restore the default of 20. Or you could delete all rows in that table with that key, it’s not … Read more

Manipulate list of themes in wp-admin

Probably not without editing core files. I haven’t found any hook you could use. If you look in the file wp-admin/themes.php and follow the program flow until the list of themes will be displayed, you can find the class WP_Themes_List_Table in wp-admin/includes/class-wp-themes-list-table.php. This class generates the HTML list. Following the prepare_items() method, WordPress get the … Read more

Using multiple instances of wp_editor in Custom Post Type admin area

you’ve got a lot of options. some of which are: to toot my own horn, i have used WP Alchemy to create repeating sortable tinyMCE editors with all the code available here http://www.kathyisawesome.com/426/multiple-wordpress-wysiwyg-visual-editors/ there is also the http://www.advancedcustomfields.com/ plugin. you can definitely have multiple instances, but you can’t add dynamic blocks on the fly.

WordPress admin menu gap when debug mode is enabled?

One way to do that is to enable WP_DEBUG_LOG in wp-config.php. The file will look like this: define( ‘WP_DEBUG’, true ); define( ‘WP_DEBUG_DISPLAY’, false ); define( ‘WP_DEBUG_LOG’, true ); //You may also set the log file path instead of just true Defining WP_DEBUG_LOG as true will save logs under wp-content/debug.log and you’ll find the PHP … Read more