500 internal server error on wp-admin only

500 can be caused due to these -> Corrupted WP core files Corrupted .htaccess files Problematic plugins PHP memory limit issues Problematic theme As you already I have re-copied the .htaccess file and put in what WordPress recommended. I have stripped the plugins from the site through FTP. I think Upload fresh copy of wp-admin … Read more

page not updating with database

Maybe instead of using a tag, you could use get_post_meta() to retrieve a custom field? Set a meta field like featured and test to see if it’s set to one or something. $featured = get_post_meta($post->ID, ‘featured’, true); if ($featured === ‘yes’) echo ‘selected’; I hope I understood your question the right way and that this … Read more

WordPress Remove Submenus

Replace all occurrences of $current_user->user_login == ‘username’ with in_array(‘editor’, $current_user->roles). And you can remove the call to get_currentuserinfo(); as for the user information is available from the global variable $current_user. Here’s a code swap: add_action(‘_admin_menu’, ‘remove_editor_submenu’, 1); function remove_editor_submenu() { global $current_user; if(in_array(‘editor’, $current_user->roles)) { remove_action(‘admin_menu’, ‘_add_themes_utility_last’, 101); } } add_action(‘admin_init’, ‘remove_theme_submenus’); function remove_theme_submenus() { … Read more

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