Responsive Admin Themes

Is there a way to achieve this type of Left dashboard Admin menu without using a plugin? You have to put the code somewhere. That is either going to be a plugin, a must-use plugin, or a theme. A theme is a somewhat strange place to be putting code intended for the backend, so the … Read more

wordpress custom post type shows other cpt posts in admin menu

i don’t know why but the problem solved after i deleted the following question code from my function.php file // Show posts of ‘post’, and ‘news’ post types on archive page add_action( ‘pre_get_posts’, ‘add_my_post_types_to_query’ ); function add_my_post_types_to_query( $query ) { if ( is_archive() && $query->is_main_query() ) $query->set( ‘post_type’, array( ‘post’, ‘news’ ) ); return $query; … Read more

How to design WooCommerce-like admin tabs for plugin settings page?

I’ve figured it out how to do it on my custom admin page. You can use default wordpress classes and get variable trickery like so: <?php if( isset( $_GET[ ‘tab’ ] ) ) { $active_tab = $_GET[ ‘tab’ ]; } // end if ?> <h2 class=”nav-tab-wrapper”> <a href=”https://wordpress.stackexchange.com/questions/350785/?page=sandbox_theme_options&tab=display_options” class=”nav-tab <?php echo $active_tab == ‘display_options’ ? … Read more

How to unset adminmenu completely?

I don’t think you can remove it globally, maybe with traversing the global $menu array. But you can unset each individually: add_action( ‘admin_menu’, ‘Wps_remove_tools’, 99 ); function Wps_remove_tools(){ remove_menu_page( ‘index.php’ ); //dashboard remove_menu_page( ‘edit.php’ ); //posts remove_menu_page( ‘upload.php’ ); //media remove_menu_page( ‘link-manager.php’ ); //links remove_menu_page( ‘edit.php?post_type=page’ ); //page remove_menu_page( ‘edit-comments.php’ ); //comments remove_menu_page( ‘themes.php’ ); … Read more

Admin menu links just refresh the page

Sounds to me like the hooked function that calls the page file itself is the same for all five uses of add_submenu_page(). Hard to tell without the code. <?php add_submenu_page( $parent_slug, $page_title, $menu_title, $capability, $menu_slug, $function ); ?> The $function variable should be different for all five uses meaning you need another four function or … Read more

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