WordPress Admin very slow

First i recommend you to use Chrome Ctrl+Shift+j -> Timeline, click record button and refresh admin page and in that timeline you will see what caused the longest load. if HTML then php/sql part is slow, but maybe some javascript causes slow load. Second – one by one disable plugins and test loading time.

Top toolbar is not showing in wordpress admin panel

I’ve a solution of my problem. I used chrome developer tool to find out the differences between the sites in my server and in my localhost. While inspecting the source I found following error- <div class=”inside”> <br> <b>Fatal error</b>: Out of memory (allocated 43778048) (tried to allocate 132605 bytes) in <b>/home/easyitca/public_html/samples/movierez/wp-includes/wp-db.php</b> on line <b>787</b><br> </div> … Read more

[Multisite]How can I update custom blog option?

As per the Codex on update_blog_option: Switches to the blog id specified, runs update_option() and then restores to the current blog. If $refresh is true then it will refresh the blog details. Not tested, but I think your problem is trying to update elements of the array instead of the whole thing: $the_options = get_blog_option($blog_id, … Read more

Display an image of selected template in admin to aid user when using complex templates

Preliminary Tasks Create a directory within your theme to contain your layout thumbs. Add layout thumbs to reflect the file names of your template. The following script uses the format tpl-homepage.php. The image would be named homepage.jpg. Please note, the following is a proof-of-concept. Approach 1: Only JavaScript Load the following only for post.php and … Read more

Add JavaScript in admin in custom plugin [duplicate]

Admin area has its own hooks in header and footer, respectively: do_action(‘admin_enqueue_scripts’, $hook_suffix); do_action(“admin_print_styles-$hook_suffix”); do_action(‘admin_print_styles’); do_action(“admin_print_scripts-$hook_suffix”); do_action(‘admin_print_scripts’); do_action(“admin_head-$hook_suffix”); do_action(‘admin_head’); and do_action(‘admin_footer’, ”); do_action(‘admin_print_footer_scripts’); do_action(“admin_footer-” . $GLOBALS[‘hook_suffix’]);

Visual Editor only working for the admin user

http://wordpress.org/support/topic/upgraded-to-32-visual-editor-buttons-missing/page/2 this fixed it. The Tiny MCE is looking for a file: wp-includes/js/tinymce/langs/en.js I just checked the file and on my installation the file path is this: wp-includes/js/tinymce/langs/wp-langs-en.js I deleted the ‘wp-langs-‘ part of the file name ‘wp-langs-en.js’ and I seem to be working again.

Posts in sidebar only by admin

You need to add an author parameter to the query that is creating $cust_loop. You didn’t post that part of your code but something like: $cust_loop = new WP_Query( ‘author=123’ ); Or: $cust_loop = new WP_Query( ‘author_name=rami’ ); Note: Both of those taken (almost) straight from the Codex paged for WP_Query.

How to show a custom notification to a specific user?

You can show admin notices via the admin_notices action. You can display it for a specific user by checking the contents of the global $current_user: function wpa80367_admin_notice() { global $current_user; if ( ‘someusername’ == $current_user->user_login ): echo ‘<div class=”updated”><p>’; echo ‘This is an admin notice just for you, someusername.’; echo ‘</p></div>’; endif; } add_action( ‘admin_notices’, … Read more