Multisite Dashboard not working

Just you need to put this code in .htaccess file # BEGIN WordPress RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] # add a trailing slash to /wp-admin RewriteRule ^wp-admin$ wp-admin/ [R=301,L] RewriteCond %{REQUEST_FILENAME} -f [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^ – [L] RewriteRule ^(wp-(content|admin|includes).*) $1 [L] RewriteRule ^(.*\.php)$ $1 [L] RewriteRule . index.php [L] … Read more

Shortcode runs when editing page

I’ve faced a similiar situation on couple of occasions. In my case the shortcode getting rendered on the text editor was caused by the shortcode echoing instead of returning its content. As noted on add_shortcode Codex entry, Note that the function called by the shortcode should never produce output of any kind. Shortcode functions should … Read more

Make Widget appear on Dashboard

Widgets aren’t metaboxes, they can’t be added to the dashboard directly. wp_add_dashboard_widget expects a callable function, not a sidebar ID. You can’t plug a widget or a widget area/sidebar into a function like that. Instead, you would need to add a metabox, then, in its callback display what you wanted to display, e.g. add_action(‘wp_dashboard_setup’, ‘custom_dashboard_widgets’); … Read more

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