Admin page repeatable fields

Try this one http://jsfiddle.net/jaredwilli/tZPg4/4/ and use array so input should be something like this <input type=”text” name=”data[1][time][start]”> <input type=”text” name=”data[1][time][end]”> <input type=”text” name=”data[2][time][start]”> <input type=”text” name=”data[2][time][end]”> …. then save data as array update_post_meta($post_id, ‘field_name’, $_POST[‘data’]);

how can i add custom menu in admin panel?

You need to use add_menu_page and add_submenu_page to display menu and sub menu. For more, refeir https://developer.wordpress.org/reference/functions/add_menu_page/ https://developer.wordpress.org/reference/functions/add_submenu_page/

check current_theme_supports in admin_menu hook

Not really sure what you’re asking here, but this allows theme support for navigation menus in your theme. Place this block of code in your theme’s functions.php file. if(function_exists(‘register_nav_menus’)){ register_nav_menus( array( ‘header_navigation’ => ‘Header Navigation’, ‘main_navigation’ => ‘Main Navigation’, ‘footer_navigation’ => ‘Footer Navigation’ ) ); }

Link to Second Level Admin Page

The add_submenu_page function allows you to link to a callback function and its this callback function which handles the display of that pages content. add_submenu_page( $parent_slug, //The slug name for the parent menu i.e. ppmtalentexpo $page_title, $menu_title, $capability, $menu_slug, $callback_function //your callback i.e. jwg_talentexpo_options2_page ); So far what you have appears right, assuming all your … Read more

Add post-new.php?post_cat=catslug to admin menu

To see the the current array keys try this: add_action( ‘admin_menu’ , ‘admin_menu_new_items’, 1 ); function admin_menu_new_items() { global $submenu; wp_die( ‘<pre>’ . var_export( $submenu[‘edit.php’], true ) . ‘</pre>’ ); } I get this: array ( 5 => array ( 0 => ‘All Posts’, 1 => ‘edit_posts’, 2 => ‘edit.php’, ), 10 => array ( … Read more

How to determin which admin screen/sub screen I’m currently viewing

Since admin menu itself knows how to display where you are at, it is reasonable to look at code responsible for that logic. Menu output is generated by _wp_menu_output() in menu-header.php. It makes use of number of global variables, namely: global $self, $parent_file, $submenu_file, $plugin_page, $pagenow, $typenow; The actual logic is quite extensive and naturally … Read more

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