The uploaded file exceeds!

A php.ini in your WordPress directory has no effect if PHP is running as a service, not per CGI or FastCGI. Find the php.ini in your PHP installation path, adjust the values there and restart PHP and your web server. So … until here this was off topic because general PHP questions belong to Stack … Read more

Hide Pages on Edit Pages based on Capability (edit_others_pages)?

I was using the wrong query_var. It’s author not post_author. add_action( ‘pre_get_posts’, ‘wps_admin_exclude_pages’ ); function wps_admin_exclude_pages( $query ) { if( ! is_admin() ) return $query; global $pagenow, $user_ID; if( ‘edit.php’ == $pagenow && ‘page’ == get_query_var( ‘post_type’ ) && ! current_user_can( ‘edit_others_pages’ ) ) $query->set( ‘author’, $user_ID ); return $query; }

WordPress’ ALL post count info on its dashboard does not match phpMyAdmin’s ALL post count!

It all comes down to this. http://core.trac.wordpress.org/ticket/11889 Behind the scenes, WordPress does generate a place-holder post for your next one! And for that special post, it sets the post_status to a special one, ‘auto-draft’. Basically, the culprit is the post generated by WordPress without your knowledge. Once you know this fact, it is easy to … Read more

Custom Fields – Taller editing area

Large »Custom Field« Textareas. Gladly those are easy to target. Wrapped up in a small plugin: <?php ! defined( ‘ABSPATH’ ) AND exit; /* Plugin Name: (#65922) »kaiser« Bigger custom field textarea */ function wpse65922_big_customfield_textarea() { ?> <style type=”text/css”> #the-list textarea, #newmeta textarea { height: 200px; } </style> <?php } add_action( ‘admin_head-post.php’, ‘wpse65922_big_customfield_textarea’ ); add_action( … Read more

Rotating background images with admin options

i would try the plugin “attachments” for the images. use it all the time for making page-specific galeries, downloads, etc. afterwards, you can use the script “supersized” Enqueue the Javascript from the Plugin, and place the following Code into the <head>: <script type=”text/javascript”> jQuery(function($){ $.supersized({ //Functionality gnav != true slideshow : 1, //Slideshow on/off autoplay … Read more