Admin login not working
Maybe you can upload wp-login.php again or change your Admin password with sql query: UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD’) WHERE ‘user_login’ =’admin’ LIMIT 1;
Maybe you can upload wp-login.php again or change your Admin password with sql query: UPDATE ‘wp_users’ SET ‘user_pass’ = MD5(‘PASSWORD’) WHERE ‘user_login’ =’admin’ LIMIT 1;
I found the answer. SO, there is no need to use wordpress api to make the color picker box showed up over another elemnn/s when the ‘Select color’ button is clicked. Just add this css code to your plugin/ theme administration css file: .wp-picker-clear, div.wp-picker-holder { z-index: 999 !important; position: absolute !important; }
Not a direct answer, but: for simple data exports on the admin side, I generally just use the AJAX API. Set up an AJAX handler for your export: /** * export from admin */ function wpse_126508_export() { header(‘Content-Type: text/xml; charset=utf-8’); header(‘Content-Description: File Transfer’); header(‘Content-Disposition: attachment; filename=wpse_126508_export.xml’); $xml = new XMLWriter(); $xml->openURI(‘php://output’); $xml->startDocument(‘1.0’, ‘UTF-8’); $xml->startElement(‘wpse_126508_export’); // … Read more
You’ve almost answered your own question. Just pass the URL as the $menu_slug to add_menu_page: add_menu_page( null, // not an actual page, so title is irrelevant ‘Menu Item Name’, ‘edit_posts’, // or whatever capability required for this object ‘/post.php?post=42&action=edit’, null, ”, 6 ); The caveat is that when you visit this menu item, the actual … Read more
You can update the override the post labels: function wpse163462_rename_menu_post_to_article() { global $menu; global $submenu; $menu[5][0] = ‘Articles’; $submenu[‘edit.php’][5][0] = ‘Articles’; $submenu[‘edit.php’][10][0] = ‘Add Articles’; echo ”; } function wpse163462_rename_post_to_article() { global $wp_post_types; $labels = &$wp_post_types[‘post’]->labels; $labels->name=”Articles”; $labels->singular_name=”Article”; $labels->add_new = ‘Add Article’; $labels->add_new_item = ‘Add Article’; $labels->edit_item = ‘Edit Article’; $labels->new_item = ‘Article’; $labels->view_item = … Read more
So for your information (based on add_menu_page) i am suggesting you to check the codex of add_menu_page in wordpress http://codex.wordpress.org/Function_Reference/add_menu_page if you look into the parameter of add_menu_page third one is for $capability just change it below code manage_options to manage_wpse_173073 (or any name you want) and just assign that capability to your custom role. … Read more
Rather than blacklist logins, why not whitelist your own IP (example 12.345.67.891 below; or a range) for wp-login.php and in wp-admin for logins and administration? (No plugin needed). A whitelist will block everyone else except you from login. See http://httpd.apache.org/docs/2.4/howto/access.html in the .htaccess in the wp-admin folder: Options All -Indexes order deny,allow deny from all … Read more
Yes there is!! If you hover over a page and click “Quick Edit” you will see a box that says “Order”, set this to 0, then on the page you want to display next set it to 1. Then on the page you want to display third set it to 2…..etc
Go to your domain and type /wp-admin and log on with your username and password. http//www.yourdomain.com/wp-admin Then go to appearance, themes and then activate your theme. If it’s not already installed you can either drag your theme to the wp-content/themes folder or install it from within the themes area.
I tried following code and its working. You need to place this in your theme’s funtions.php file. Let me know how it goes 🙂 add_action(‘admin_init’, ‘admin_only_post_title’); function admin_only_post_title() { if (!current_user_can(‘manage_options’)) remove_post_type_support(‘post’, ‘title’); }