read excel file in the dasboard programmatically

To read a excel file inside wordpress, is there any function available WordPress does not provide functions for reading spreadsheets. PHP provides functions for reading CSV files via fgetcsv etc, but these are for .csv files. If you want to open an xls or xlsx file in code, and read its contents, you will need … Read more

Remove add_menu()’s second argument from it’s submenus list

Try this: add_menu_page( ‘MDW Config’, ‘MDW Config’, ‘manage_options’, ‘mdw-config’, ‘config_general_info’, ”, 45); add_submenu_page( ‘mdw-config’, ‘General info’, ‘Info’, ‘manage_options’, ‘mdw-config’, ‘config_general_info’); add_submenu_page( ‘mdw-config’, ‘Google Analytics Integration’, ‘Google Analytics’, ‘manage_options’, ‘ga-integration’, ‘config_ga_integration’); What you have to do is simply overwrite the name of your first submenu page by assigning it to the same menu-slug but with different … Read more

Can’t sort Posts in wordpress Dashbaord

The only time I’ve seen this happen is with a theme using JavaScript that is conflicting with the JavaScript in the WordPress administration area. If this is what is happening to you then its a poorly-coded theme and you should change to a different theme. If this is a premium theme you should contact the … Read more

Pending Post review notification for contributors

Jonnny, I would highly recommend checking out Edit Flow. It does add a notification to the dashboard about Pending posts, as well as a host of other things. The plugin is aimed at organizing a whole team of content creators. It’s well described at editflow.org.

How can I change a submenu-item in the WordPress-dashboard to a mainmenu-item?

At first you have to remove the submenu and then add it again. The code should look something like this: add_action( ‘admin_menu’, ‘register_my_custom_menu_page’ ); function register_my_custom_menu_page( ) { remove_submenu_page( ‘themes.php’,’nav-menus.php’) ; add_menu_page( ‘Menus’, ‘menu’, ‘manage_options’, ‘nav-menus.php’ ); } See the WordPress Codex

WordPress Dashboards: slowness and timeouts

Have you taken a look at the error logs? Who is your host? Do you have Process Manager or anything similar to be able to tell what processes are running? A way to tell where most of your bandwidth is being used? Just some ideas on where you might be hitting resource limits. How large … Read more

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