Multisite – cannot remove specific sub-menu its parent menu. All sub-menus disappear

Ok, I was doing a mistake and glad that I found it! I was using admin_menu hook when it should be admin_init. So the only change I had to make was: add_action(‘admin_init’, ‘restrict_admin_access_by_role’, 999); https://stackoverflow.com/questions/27137866/what-wordpress-hook-fires-first-admin-init-or-admin-menu Hope this would help somebody like me as well!

Continous audio play in pages

I did this on a site http://www.axjet.co/ I don’t know a plugin that will do it, this custom code added to my header. Using a simple dynamic drive script http://dynamicdrive.com/dynamicindex11/html5audioplayer.htm

WordPress Admin Page Redirecting to Subdomain

Add the indicated line to your .htaccess and all should be fixed RewriteEngine On RewriteBase / RewriteRule ^index\.php$ – [L] **RewriteCond %{http_host} ^(www\.)?YourDomain\.com$ [nc]** RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule . /index.php [L]

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